ironic_lib.exception Module¶Ironic base exception handling.
Includes decorator for re-raising Ironic-type exceptions.
SHOULD include dedicated exception logging.
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.'¶ironic_lib.exception.InstanceDeployFailure(message=None, **kwargs)[source]¶Bases: ironic_lib.exception.IronicException
message = u'Failed to deploy instance: %(reason)s'¶ironic_lib.exception.InvalidMetricConfig(message=None, **kwargs)[source]¶Bases: ironic_lib.exception.IronicException
message = u'Invalid value for metrics config option: %(reason)s'¶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¶
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.