Module diskchef.engine.exceptions
Expand source code
class CHEFError(Exception):
"""Base class for diskchef exceptions"""
class CHEFNotImplementedError(CHEFError, NotImplementedError):
"""Exception raised by base classes methods which only define interface for child classes"""
class CHEFValueError(CHEFError, ValueError):
"""Exception raised when the value of argument to the function is wrong"""
class CHEFTypeError(CHEFError, TypeError):
"""Exception raised when the type of argument is wrong"""
class CHEFRuntimeError(CHEFError, RuntimeError):
"""Exception raised in other cases"""
class CHEFWarning(UserWarning):
"""Base class for diskchef warningns"""
class RADMCWarning(CHEFWarning):
"""Base class for radmc warningns"""
class CHEFValueWarning(CHEFWarning):
"""Warning issued when the values are not properly set, but it is not critical"""
class CHEFSlowDownWarning(CHEFWarning, ResourceWarning):
"""Warning issued by pieces of code which are known to be slow, if a possible alternative exists"""
Classes
class CHEFError (*args, **kwargs)
-
Base class for diskchef exceptions
Expand source code
class CHEFError(Exception): """Base class for diskchef exceptions"""
Ancestors
- builtins.Exception
- builtins.BaseException
Subclasses
class CHEFNotImplementedError (*args, **kwargs)
-
Exception raised by base classes methods which only define interface for child classes
Expand source code
class CHEFNotImplementedError(CHEFError, NotImplementedError): """Exception raised by base classes methods which only define interface for child classes"""
Ancestors
- CHEFError
- builtins.NotImplementedError
- builtins.RuntimeError
- builtins.Exception
- builtins.BaseException
class CHEFRuntimeError (*args, **kwargs)
-
Exception raised in other cases
Expand source code
class CHEFRuntimeError(CHEFError, RuntimeError): """Exception raised in other cases"""
Ancestors
- CHEFError
- builtins.RuntimeError
- builtins.Exception
- builtins.BaseException
class CHEFSlowDownWarning (*args, **kwargs)
-
Warning issued by pieces of code which are known to be slow, if a possible alternative exists
Expand source code
class CHEFSlowDownWarning(CHEFWarning, ResourceWarning): """Warning issued by pieces of code which are known to be slow, if a possible alternative exists"""
Ancestors
- CHEFWarning
- builtins.UserWarning
- builtins.ResourceWarning
- builtins.Warning
- builtins.Exception
- builtins.BaseException
class CHEFTypeError (*args, **kwargs)
-
Exception raised when the type of argument is wrong
Expand source code
class CHEFTypeError(CHEFError, TypeError): """Exception raised when the type of argument is wrong"""
Ancestors
- CHEFError
- builtins.TypeError
- builtins.Exception
- builtins.BaseException
class CHEFValueError (*args, **kwargs)
-
Exception raised when the value of argument to the function is wrong
Expand source code
class CHEFValueError(CHEFError, ValueError): """Exception raised when the value of argument to the function is wrong"""
Ancestors
- CHEFError
- builtins.ValueError
- builtins.Exception
- builtins.BaseException
class CHEFValueWarning (*args, **kwargs)
-
Warning issued when the values are not properly set, but it is not critical
Expand source code
class CHEFValueWarning(CHEFWarning): """Warning issued when the values are not properly set, but it is not critical"""
Ancestors
- CHEFWarning
- builtins.UserWarning
- builtins.Warning
- builtins.Exception
- builtins.BaseException
class CHEFWarning (*args, **kwargs)
-
Base class for diskchef warningns
Expand source code
class CHEFWarning(UserWarning): """Base class for diskchef warningns"""
Ancestors
- builtins.UserWarning
- builtins.Warning
- builtins.Exception
- builtins.BaseException
Subclasses
class RADMCWarning (*args, **kwargs)
-
Base class for radmc warningns
Expand source code
class RADMCWarning(CHEFWarning): """Base class for radmc warningns"""
Ancestors
- CHEFWarning
- builtins.UserWarning
- builtins.Warning
- builtins.Exception
- builtins.BaseException