Skip to content

module adabmDCA.exceptions

Structured exceptions shared by every adabmDCA layer.


class AdabmDCAError

Base class for recoverable errors raised by adabmDCA.

method __init__

__init__(message: 'str', details: 'Mapping[str, Any] | None' = None) → None

method to_dict

to_dict() → dict[str, Any]

Return a JSON-serializable representation of the error.


class InputValidationError

Raised when a high-level API input is invalid.

method __init__

__init__(message: 'str', details: 'Mapping[str, Any] | None' = None) → None

method to_dict

to_dict() → dict[str, Any]

Return a JSON-serializable representation of the error.


class InputLoadError

Raised when an input resource cannot be read or decoded.

method __init__

__init__(message: 'str', details: 'Mapping[str, Any] | None' = None) → None

method to_dict

to_dict() → dict[str, Any]

Return a JSON-serializable representation of the error.


class WeightLoadError

Raised when sequence weights cannot be loaded or aligned.

method __init__

__init__(message: 'str', details: 'Mapping[str, Any] | None' = None) → None

method to_dict

to_dict() → dict[str, Any]

Return a JSON-serializable representation of the error.


class ChainLoadError

Raised when an initial chain state cannot be loaded or validated.

method __init__

__init__(message: 'str', details: 'Mapping[str, Any] | None' = None) → None

method to_dict

to_dict() → dict[str, Any]

Return a JSON-serializable representation of the error.


class OutputSerializationError

Raised when a result cannot be serialized to the requested output.

method __init__

__init__(message: 'str', details: 'Mapping[str, Any] | None' = None) → None

method to_dict

to_dict() → dict[str, Any]

Return a JSON-serializable representation of the error.


class ComputationError

Raised when a valid scientific operation cannot be completed.

method __init__

__init__(message: 'str', details: 'Mapping[str, Any] | None' = None) → None

method to_dict

to_dict() → dict[str, Any]

Return a JSON-serializable representation of the error.


class ConvergenceError

Raised when an iterative operation exhausts its convergence budget.

method __init__

__init__(message: 'str', details: 'Mapping[str, Any] | None' = None) → None

method to_dict

to_dict() → dict[str, Any]

Return a JSON-serializable representation of the error.


class ModelCompatibilityError

Raised when data are incompatible with a DCA model.

method __init__

__init__(message: 'str', details: 'Mapping[str, Any] | None' = None) → None

method to_dict

to_dict() → dict[str, Any]

Return a JSON-serializable representation of the error.


class ModelLoadError

Raised when model parameters cannot be loaded.

method __init__

__init__(message: 'str', details: 'Mapping[str, Any] | None' = None) → None

method to_dict

to_dict() → dict[str, Any]

Return a JSON-serializable representation of the error.


class OperationCancelledError

Raised when a caller-provided cancellation hook stops an operation.

method __init__

__init__(message: 'str', details: 'Mapping[str, Any] | None' = None) → None

method to_dict

to_dict() → dict[str, Any]

Return a JSON-serializable representation of the error.


class AlignmentError

Base class for alignment input and processing errors.

method __init__

__init__(message: 'str', details: 'Mapping[str, Any] | None' = None) → None

method to_dict

to_dict() → dict[str, Any]

Return a JSON-serializable representation of the error.


class AlignmentLoadError

Raised when an alignment resource cannot be opened or decoded.

method __init__

__init__(message: 'str', details: 'Mapping[str, Any] | None' = None) → None

method to_dict

to_dict() → dict[str, Any]

Return a JSON-serializable representation of the error.


class AlignmentFormatError

Raised when an alignment format cannot be detected or parsed.

method __init__

__init__(message: 'str', details: 'Mapping[str, Any] | None' = None) → None

method to_dict

to_dict() → dict[str, Any]

Return a JSON-serializable representation of the error.


class AlignmentLengthError

Raised when sequences do not share a common aligned length.

method __init__

__init__(message: 'str', details: 'Mapping[str, Any] | None' = None) → None

method to_dict

to_dict() → dict[str, Any]

Return a JSON-serializable representation of the error.


This file was automatically generated via lazydocs.