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.

AEAEnforceError Objects

class AEAEnforceError(AEAException)

Class for enforcement errors.


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.


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