Exceptions for the AEA package.
class AEAException(Exception)
User-defined exception for the AEA framework.
class AEAPackageLoadingError(AEAException)
Class for exceptions that are raised for loading errors of AEA packages.
class AEASetupError(AEAException)
Class for exceptions that are raised for setup errors of AEA packages.
class AEATeardownError(AEAException)
Class for exceptions that are raised for teardown errors of AEA packages.
class AEAActException(AEAException)
Class for exceptions that are raised for act errors of AEA packages.
class AEAHandleException(AEAException)
Class for exceptions that are raised for handler errors of AEA packages.
class AEAInstantiationException(AEAException)
Class for exceptions that are raised for instantiation errors of AEA packages.
class AEAPluginError(AEAException)
Class for exceptions that are raised for wrong plugin setup of the working set.
class AEAEnforceError(AEAException)
Class for enforcement errors.
class AEAValidationError(AEAException)
Class for validation errors of an AEA.
class AEAComponentLoadException(AEAException)
Class for component loading errors of an AEA.
class AEAWalletNoAddressException(AEAException)
Class for attempts to instantiate a wallet without addresses.
class _StopRuntime(Exception)
Exception to stop runtime.
For internal usage only! Used to perform asyncio call from sync callbacks.
def __init__(reraise: Optional[Exception] = None) -> None
Init _StopRuntime exception.
Arguments:
reraise
: exception to reraise.
def 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 conditionexception_text
: the exception to be raisedexception_class
: the class of exception
def parse_exception(exception: Exception, limit: int = -1) -> str
Parse an exception to get the relevant lines.
Arguments:
exception
: the exception to be parsedlimit
: the limit
Returns:
exception as string