Exceptions
siapy.core.exceptions
¶
SiapyError
¶
Bases: Exception
Base exception for SiaPy library.
PARAMETER | DESCRIPTION |
---|---|
message |
TYPE:
|
name |
TYPE:
|
Source code in siapy/core/exceptions.py
18 19 20 21 |
|
InvalidFilepathError
¶
InvalidFilepathError(filename: str)
Bases: SiapyError
Exception raised when a required file is not found.
PARAMETER | DESCRIPTION |
---|---|
filename |
TYPE:
|
Source code in siapy/core/exceptions.py
27 28 29 |
|
InvalidInputError
¶
Bases: SiapyError
Exception raised for invalid input.
PARAMETER | DESCRIPTION |
---|---|
input_value |
TYPE:
|
message |
TYPE:
|
Source code in siapy/core/exceptions.py
35 36 37 38 |
|
InvalidTypeError
¶
InvalidTypeError(input_value: Any, allowed_types: type | tuple[type, ...], message: str = 'Invalid type')
Bases: SiapyError
Exception raised for invalid type.
PARAMETER | DESCRIPTION |
---|---|
input_value |
TYPE:
|
allowed_types |
|
message |
TYPE:
|
Source code in siapy/core/exceptions.py
44 45 46 47 48 49 50 51 52 53 54 55 56 |
|
ProcessingError
¶
ProcessingError(message: str = 'An error occurred during processing')
Bases: SiapyError
Exception raised for errors during processing.
PARAMETER | DESCRIPTION |
---|---|
message |
TYPE:
|
Source code in siapy/core/exceptions.py
62 63 64 |
|
ConfigurationError
¶
ConfigurationError(message: str = 'Configuration error')
Bases: SiapyError
Exception raised for configuration errors.
PARAMETER | DESCRIPTION |
---|---|
message |
TYPE:
|
Source code in siapy/core/exceptions.py
70 71 72 |
|
MethodNotImplementedError
¶
Bases: SiapyError
Exception raised for not implemented methods.
PARAMETER | DESCRIPTION |
---|---|
class_name |
TYPE:
|
method_name |
TYPE:
|
Source code in siapy/core/exceptions.py
78 79 80 81 82 83 |
|
DirectInitializationError
¶
DirectInitializationError(class_: type)
Bases: SiapyError
Exception raised when a class method is required to create an instance.
PARAMETER | DESCRIPTION |
---|---|
class_ |
TYPE:
|
Source code in siapy/core/exceptions.py
89 90 91 92 93 94 95 96 |
|