Errors

exception arbitrum_py.data_entities.errors.ArbSdkError(message, inner=None)[source]

Bases: Exception

Base class for errors originating in the Arbitrum SDK.

This class serves as the root exception type for all Arbitrum SDK-specific errors. It provides support for wrapping other exceptions to maintain the error chain and context, similar to the TypeScript implementation.

Variables:
  • message (str) – The error message

  • inner (Optional[Exception]) – The underlying exception that caused this error

  • stack (str) – A string containing this error’s message and optionally the inner exception’s stack trace

__init__(message, inner=None)[source]

Initialize an ArbSdkError.

Parameters:
  • message (str) – A descriptive error message

  • inner (Optional[Exception]) – Optional exception that caused this error. If provided, its stack trace will be included in this error’s stack trace.

__str__()[source]

Get the complete error message including any inner exception details.

Return type:

str

Returns:

A string containing this error’s message and any inner exception details

exception arbitrum_py.data_entities.errors.MissingProviderArbSdkError(signer_name)[source]

Bases: ArbSdkError

Error raised when a signer lacks a required provider connection.

This error is thrown when attempting to use a signer that doesn’t have a connected provider, but the operation requires one. This typically happens when trying to execute transactions or make contract calls.

Variables:

signer_name (str) – The name/identifier of the signer missing a provider

__init__(signer_name)[source]

Initialize a MissingProviderArbSdkError.

Parameters:

signer_name (str) – Identifier for the signer that lacks a provider