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.
AEAPluginError Objects
class AEAPluginError(AEAException)
Class for exceptions that are raised for wrong plugin setup of the working set.
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.
AEAWalletNoAddressException Objects
class AEAWalletNoAddressException(AEAException)
Class for attempts to instantiate a wallet without addresses.
_
StopRuntime Objects
class _StopRuntime(Exception)
Exception to stop runtime.
For internal usage only! Used to perform asyncio call from sync callbacks.
__
init__
def __init__(reraise: Optional[Exception] = None) -> None
Init _StopRuntime exception.
Arguments:
reraise
: exception to reraise.
enforce
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
parse_
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