errors
ErrorModel
¶
Bases: BaseModel
Represents an error model containing details of an error.
This class is used to encapsulate metadata for error conditions, such as the error code and the error message. It provides a structured way to convey error information within applications or across systems.
Attributes:
Name | Type | Description |
---|---|---|
code |
int
|
Error code for the error. |
message |
str
|
Error message for the error. |