Serialize error for protocol transmission.
(self)
| 23 | return self.message |
| 24 | |
| 25 | def to_dict(self): |
| 26 | """Serialize error for protocol transmission.""" |
| 27 | return { |
| 28 | "error_type": self.__class__.__name__, |
| 29 | "message": self.message, |
| 30 | "details": self.details, |
| 31 | } |
| 32 | |
| 33 | @classmethod |
| 34 | def from_dict(cls, data): |
no outgoing calls