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