Skip to content

Commit

Permalink
fix(solana/exceptions): attempt to expose exception attributes on the…
Browse files Browse the repository at this point in the history
… solanarpcexception
  • Loading branch information
datasalaryman committed Dec 15, 2023
1 parent 892d444 commit b6aa1a1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/solana/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit b6aa1a1

Please sign in to comment.