FakeTraceback Class
Fake traceback object that implements enough to make traceback logging work.
Create a new FakeTraceback.
- Inheritance
-
builtins.objectFakeTraceback
Constructor
FakeTraceback(tb: TracebackType)
Parameters
Name | Description |
---|---|
tb
Required
|
|
Methods
deserialize |
Deserialize this object from a dict. |
serialize |
Serialize this object to a dict. |
serialize_exception_tb | |
serialize_traceback |
deserialize
Deserialize this object from a dict.
deserialize(d: Dict[str, Any] | None) -> FakeTraceback | None
Parameters
Name | Description |
---|---|
d
Required
|
|
serialize
Serialize this object to a dict.
serialize() -> Dict[str, Any]
serialize_exception_tb
serialize_exception_tb(ex: BaseException | None) -> Dict[str, Any] | None
Parameters
Name | Description |
---|---|
ex
Required
|
|
serialize_traceback
serialize_traceback(tb: TracebackType | None) -> Dict[str, Any] | None
Parameters
Name | Description |
---|---|
tb
Required
|
|