Errors
Custom Exceptions for Ramifice.
DoesNotMatchRegexError
¶
Bases: RamificeException
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\utils\errors.py
FileHasNoExtensionError
¶
Bases: RamificeException
Exception raised if the file has no extension.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
message
|
str
|
explanation of the error |
'File has no extension!'
|
Source code in src\ramifice\utils\errors.py
ForbiddenDeleteDocError
¶
Bases: RamificeException
Exception is raised when trying to delete the document.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
message
|
str
|
explanation of the error |
required |
Source code in src\ramifice\utils\errors.py
NoModelsForMigrationError
¶
Bases: RamificeException
Exception raised if no Models for migration.
Source code in src\ramifice\utils\errors.py
NotPossibleAddUnitError
¶
Bases: RamificeException
Exception is raised when not possible to add Unit.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
message
|
str
|
explanation of the error |
required |
Source code in src\ramifice\utils\errors.py
NotPossibleDeleteUnitError
¶
Bases: RamificeException
Exception is raised when not possible to delete Unit.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
message
|
str
|
explanation of the error |
required |
Source code in src\ramifice\utils\errors.py
OldPassNotMatchError
¶
Bases: RamificeException
Exception is raised when trying to update the password.
Hint: If old password does not match.
Source code in src\ramifice\utils\errors.py
PanicError
¶
Bases: RamificeException
Exception raised for cases of which should not be.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
message
|
str
|
explanation of the error |
required |