The ironic_lib.exception
Module¶
Ironic base exception handling.
Includes decorator for re-raising Ironic-type exceptions.
SHOULD include dedicated exception logging.
-
exception
ironic_lib.exception.
FileSystemNotSupported
(message=None, **kwargs)[source]¶ Bases:
ironic_lib.exception.IronicException
-
message
= u'Failed to create a file system. File system %(fs)s is not supported.'¶
-
-
exception
ironic_lib.exception.
InstanceDeployFailure
(message=None, **kwargs)[source]¶ Bases:
ironic_lib.exception.IronicException
-
message
= u'Failed to deploy instance: %(reason)s'¶
-
-
exception
ironic_lib.exception.
InvalidMetricConfig
(message=None, **kwargs)[source]¶ Bases:
ironic_lib.exception.IronicException
-
message
= u'Invalid value for metrics config option: %(reason)s'¶
-
-
exception
ironic_lib.exception.
IronicException
(message=None, **kwargs)[source]¶ Bases:
exceptions.Exception
Base Ironic Exception
To correctly use this class, inherit from it and define a ‘message’ property. That message will get printf’d with the keyword arguments provided to the constructor.
-
code
= 500¶
-
headers
= {}¶
-
message
= u'An unknown exception occurred.'¶
-
safe
= False¶
-