Error#
- class Error(code: int, reason: str | None = None)[源代码]#
基类:
object
A dataclass that stores information about an error that occurred.
- 参数:
code (int) -- An identifier for the error.
reason (Optional[str]) -- A reason for why the error arose (e.g. an exception stack-trace)
Methods
Attributes
- property code: int#
Error code.
- property reason: str | None#
Reason reported about the error.