Skip to content

aea.exceptions

Exceptions for the AEA package.

AEAException Objects

class AEAException(Exception)

User-defined exception for the AEA framework.

AEAPackageLoadingError Objects

class AEAPackageLoadingError(AEAException)

Class for exceptions that are raised for loading errors of AEA packages.

AEASetupError Objects

class AEASetupError(AEAException)

Class for exceptions that are raised for setup errors of AEA packages.

AEATeardownError Objects

class AEATeardownError(AEAException)

Class for exceptions that are raised for teardown errors of AEA packages.

AEAActException Objects

class AEAActException(AEAException)

Class for exceptions that are raised for act errors of AEA packages.

AEAHandleException Objects

class AEAHandleException(AEAException)

Class for exceptions that are raised for handler errors of AEA packages.

AEAInstantiationException Objects

class AEAInstantiationException(AEAException)

Class for exceptions that are raised for instantiation errors of AEA packages.

AEAEnforceError Objects

class AEAEnforceError(AEAException)

Class for enforcement errors.

AEAValidationError Objects

class AEAValidationError(AEAException)

Class for validation errors of an AEA.

AEAComponentLoadException Objects

class AEAComponentLoadException(AEAException)

Class for component loading errors of an AEA.

_StopRuntime Objects

class _StopRuntime(Exception)

Exception to stop runtime.

For internal usage only! Used to perform asyncio call from sync callbacks.

__init__

 | __init__(reraise: Optional[Exception] = None)

Init _StopRuntime exception.

Arguments:

  • reraise: exception to reraise.

Returns:

None

enforce

enforce(is_valid_condition: bool, exception_text: str, exception_class: Type[Exception] = AEAEnforceError) -> None

Evaluate a condition and raise an exception with the provided text if it is not satisfied.

Arguments:

  • is_valid_condition: the valid condition
  • exception_text: the exception to be raised
  • exception_class: the class of exception

parse_exception

parse_exception(exception: Exception, limit=-1) -> str

Parse an exception to get the relevant lines.

Arguments:

  • limit: the limit

Returns:

exception as string