Skip to main content

agora.common.errors

ProtocolError Objects

class ProtocolError(Exception)

Base exception class for protocol-related errors.

__init__

def __init__(message: str = '')

Initializes the ProtocolError with an optional message.

Arguments:

  • message str, optional - The error message. Defaults to an empty string.

ExecutionError Objects

class ExecutionError(Exception)

Exception raised for errors during the internal execution of routines and toolformers.

__init__

def __init__(message: str = '')

Initializes the ExecutionError with an optional message.

Arguments:

  • message str, optional - The error message. Defaults to an empty string.

StorageError Objects

class StorageError(Exception)

Exception raised for storage-related issues.

__init__

def __init__(message: str = '')

Initializes the StorageError with an optional message.

Arguments:

  • message str, optional - The error message. Defaults to an empty string.

SchemaError Objects

class SchemaError(Exception)

Exception raised for schema validation errors.

__init__

def __init__(message: str = '')

Initializes the SchemaError with an optional message.

Arguments:

  • message str, optional - The error message. Defaults to an empty string.

ProtocolRejectedError Objects

class ProtocolRejectedError(ProtocolError)

Exception raised when a protocol is rejected.

__init__

def __init__(message: str = '')

Initializes ProtocolRejectedError with an optional message.

Arguments:

  • message str, optional - The error message. Defaults to 'Protocol rejected' if empty.

ProtocolNotFoundError Objects

class ProtocolNotFoundError(ProtocolError)

Exception raised when a protocol is not found.

__init__

def __init__(message: str = '')

Initializes ProtocolNotFoundError with an optional message.

Arguments:

  • message str, optional - The error message. Defaults to an empty string.

ProtocolRetrievalError Objects

class ProtocolRetrievalError(ProtocolError)

Exception raised when retrieving a protocol fails.

__init__

def __init__(message: str = '')

Initializes ProtocolRetrievalError with an optional message.

Arguments:

  • message str, optional - The error message. Defaults to an empty string.

ProtocolTransportError Objects

class ProtocolTransportError(ProtocolError)

Exception raised for transport-related protocol errors.

__init__

def __init__(message: str = '')

Initializes ProtocolTransportError with an optional message.

Arguments:

  • message str, optional - The error message. Defaults to an empty string.