ironic_inspector.common.exception module¶
Ironic base exception handling.
Includes decorator for re-raising Ironic-type exceptions.
SHOULD include dedicated exception logging.
-
exception
ironic_inspector.common.exception.BadRequest(message=None, **kwargs)[source]¶ Bases:
ironic_inspector.common.exception.IronicException-
code= 400¶
-
-
exception
ironic_inspector.common.exception.IronicException(message=None, **kwargs)[source]¶ Bases:
ExceptionBase Ironic Exception
To correctly use this class, inherit from it and define a ‘_msg_fmt’ property. That _msg_fmt will get printf’d with the keyword arguments provided to the constructor.
If you need to access the message from an exception you should use str(exc)
-
code= 500¶
-
headers= {}¶
-
safe= False¶
-