diff options
Diffstat (limited to 'ironic_python_agent/errors.py')
| -rw-r--r-- | ironic_python_agent/errors.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/ironic_python_agent/errors.py b/ironic_python_agent/errors.py index bf0253dd..0f7a185c 100644 --- a/ironic_python_agent/errors.py +++ b/ironic_python_agent/errors.py @@ -91,6 +91,15 @@ class RequestedObjectNotFoundError(NotFound): super(RequestedObjectNotFoundError, self).__init__(details) +class AgentIsBusy(CommandExecutionError): + + message = 'Agent is busy' + status_code = 409 + + def __init__(self, command_name): + super().__init__('executing command %s' % command_name) + + class IronicAPIError(RESTError): """Error raised when a call to the agent API fails.""" |
