Custom exception for RPC-related errors raised on the client side. Args: message: The error message. cause: The original exception that caused this error. traceback: The traceback of the exception.
| 31 | |
| 32 | # --- Custom Exceptions --- |
| 33 | class RPCError(Exception): |
| 34 | """Custom exception for RPC-related errors raised on the client side. |
| 35 | |
| 36 | Args: |
| 37 | message: The error message. |
| 38 | cause: The original exception that caused this error. |
| 39 | traceback: The traceback of the exception. |
| 40 | """ |
| 41 | |
| 42 | def __init__(self, |
| 43 | message: str, |
| 44 | cause: Optional[Exception] = None, |
| 45 | traceback: Optional[str] = None): |
| 46 | super().__init__(message) |
| 47 | self.cause = cause |
| 48 | self.traceback = traceback |
| 49 | |
| 50 | |
| 51 | class RPCTimeout(RPCError): |