diff --git a/src/solana/exceptions.py b/src/solana/exceptions.py index a868cce7..f69ef407 100644 --- a/src/solana/exceptions.py +++ b/src/solana/exceptions.py @@ -20,11 +20,16 @@ def _build_error_message( return f"{type(exc)} raised in {func} invokation" -class SolanaRpcException(SolanaExceptionBase): +class SolanaRpcException: """Class for Solana-py RPC exceptions.""" + def __init__(self, exc: Exception, func: Callable[[Any], Any], *args: Any, **kwargs: Any) -> None: + """Init.""" + self.error_msg = self._build_error_message(exc, func, *args, **kwargs) + @staticmethod def _build_error_message( + self, exc: Exception, func: Callable[[Any], Any], # noqa: ARG004 *args: Any,