22 lines
529 B
Python
22 lines
529 B
Python
"""Miner control domain exceptions."""
|
|
|
|
|
|
class MinerControlError(Exception):
|
|
"""Base miner control error."""
|
|
|
|
|
|
class ControlledMinerNotFound(MinerControlError):
|
|
"""The durable miner UUID is unknown."""
|
|
|
|
|
|
class MinerControlUnavailable(MinerControlError):
|
|
"""The requested action cannot be safely queued."""
|
|
|
|
|
|
class MinerControlConflict(MinerControlError):
|
|
"""Another live control operation already exists."""
|
|
|
|
|
|
class MinerControlActorRequired(MinerControlError):
|
|
"""An authenticated actor UUID is required."""
|