flask_boilerplate.domain.errors package
Submodules
flask_boilerplate.domain.errors.entities_error module
- exception flask_boilerplate.domain.errors.entities_error.EntitiesError(message: str)[source]
Bases:
ExceptionBase class for exceptions related to Entities in the domain layer.
This class serves as the base exception for all entity-related errors within the domain layer. By inheriting from the built-in Exception class, it provides a consistent way to handle and propagate entity errors.
- message
The error message describing the issue.
- Type:
str
- __init__(message: str) None[source]
Initialize a new EntitiesError with a specific message.
- Parameters:
message (str) – The error message describing the issue.
flask_boilerplate.domain.errors.value_objects_error module
- exception flask_boilerplate.domain.errors.value_objects_error.ValueObjectsError(message: str)[source]
Bases:
ExceptionBase class for exceptions related to Value Objects in the domain layer.
This class serves as the base exception for all value object-related errors within the domain layer. By inheriting from the built-in Exception class, it provides a consistent way to handle and propagate value object errors.
- message
The error message describing the issue.
- Type:
str
- __init__(message: str) None[source]
Initialize a new ValueObjectsError with a specific message.
- Parameters:
message (str) – The error message describing the issue.
Module contents
- exception flask_boilerplate.domain.errors.ValueObjectsError(message: str)[source]
Bases:
ExceptionBase class for exceptions related to Value Objects in the domain layer.
This class serves as the base exception for all value object-related errors within the domain layer. By inheriting from the built-in Exception class, it provides a consistent way to handle and propagate value object errors.
- message
The error message describing the issue.
- Type:
str
- __init__(message: str) None[source]
Initialize a new ValueObjectsError with a specific message.
- Parameters:
message (str) – The error message describing the issue.