Errors
Custom Exceptions for Ramifice.
AttributeCannotBeDeleteError
¶
Bases: RamificeException
Exception is raised if the attribute cannot be delete.
Source code in src/ramifice/errors.py
__init__(attribute_name)
¶
Exception is raised if the attribute cannot be delete.
DoesNotMatchRegexError
¶
Bases: RamificeException
Exception raised if does not match the regular expression.
Source code in src/ramifice/errors.py
__init__(regex_str)
¶
Exception raised if does not match the regular expression.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
regex_str
|
str
|
regular expression in string representation |
required |
Source code in src/ramifice/errors.py
FileHasNoExtensionError
¶
Bases: RamificeException
Exception raised if the file has no extension.
Source code in src/ramifice/errors.py
__init__(message='File has no extension!')
¶
Exception raised if the file has no extension.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
message
|
str
|
explanation of the error |
'File has no extension!'
|
ForbiddenDeleteDocError
¶
Bases: RamificeException
Exception is raised when trying to delete the document.
Source code in src/ramifice/errors.py
__init__(message)
¶
Exception is raised when trying to delete the document.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
message
|
str
|
explanation of the error |
required |
NoModelsForMigrationError
¶
Bases: RamificeException
Exception raised if no Models for migration.
Source code in src/ramifice/errors.py
NotPossibleAddUnitError
¶
Bases: RamificeException
Exception is raised when not possible to add Unit.
Source code in src/ramifice/errors.py
__init__(message)
¶
Exception is raised when not possible to add Unit.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
message
|
str
|
explanation of the error |
required |
NotPossibleDeleteUnitError
¶
Bases: RamificeException
Exception is raised when not possible to delete Unit.
Source code in src/ramifice/errors.py
__init__(message)
¶
Exception is raised when not possible to delete Unit.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
message
|
str
|
explanation of the error |
required |
OldPassNotMatchError
¶
Bases: RamificeException
Exception is raised when trying to update the password.
Hint: If old password does not match.
Source code in src/ramifice/errors.py
__init__()
¶
Exception is raised when trying to update the password.
Hint: If old password does not match.
PanicError
¶
Bases: RamificeException
Exception raised for cases of which should not be.
Source code in src/ramifice/errors.py
__init__(message)
¶
Exception raised for cases of which should not be.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
message
|
str
|
explanation of the error |
required |
RamificeException
¶
Bases: Exception
Root Exception for Ramifice.