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

exception ironic_lib.exception.InstanceDeployFailure(message=None, **kwargs)[source]

Bases: ironic_lib.exception.IronicException

exception ironic_lib.exception.InvalidMetricConfig(message=None, **kwargs)[source]

Bases: ironic_lib.exception.IronicException

exception ironic_lib.exception.IronicException(message=None, **kwargs)[source]

Bases: Exception

Base 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 six.text_type(exc)

code = 500
format_message()[source]
headers = {}
safe = False
exception ironic_lib.exception.ServiceLookupFailure(message=None, **kwargs)[source]

Bases: ironic_lib.exception.IronicException

exception ironic_lib.exception.ServiceRegistrationFailure(message=None, **kwargs)[source]

Bases: ironic_lib.exception.IronicException

ironic_lib.exception.list_opts()[source]

Entry point for oslo-config-generator.