aea.error_handler.base
This module contains the abstract error handler class.
AbstractErrorHandler Objects
Error handler class for handling problematic envelopes.
__init__
Instantiate error handler.
config
Get handler config.
send_unsupported_protocol
Handle the received envelope in case the protocol is not supported.
Arguments:
envelope: the envelopelogger: the logger
Returns:
None
send_decoding_error
| @abstractmethod
| send_decoding_error(envelope: Envelope, exception: Exception, logger: Logger) -> None
Handle a decoding error.
Arguments:
envelope: the envelopeexception: the exception raised during decodinglogger: the logger
Returns:
None
send_no_active_handler
Handle the received envelope in case the handler is not supported.
Arguments:
envelope: the envelopereason: the reason for the failurelogger: the logger
Returns:
None