diff options
Diffstat (limited to 'ironic_python_agent/errors.py')
-rw-r--r-- | ironic_python_agent/errors.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/ironic_python_agent/errors.py b/ironic_python_agent/errors.py index 26dac154..ee2df169 100644 --- a/ironic_python_agent/errors.py +++ b/ironic_python_agent/errors.py @@ -294,3 +294,15 @@ class ISCSIError(RESTError): '{1}. stdout: {2}. stderr: {3}') details = details.format(error_msg, exit_code, stdout, stderr) super(ISCSIError, self).__init__(details) + + +class DeviceNotFound(NotFound): + """Error raised when the disk or partition to deploy the image onto is + not found. + """ + + message = ('Error finding the disk or partition device to deploy ' + 'the image onto.') + + def __init__(self, details): + super(DeviceNotFound, self).__init__(details) |