aea.error_
handler.default
This module contains the default error handler class.
ErrorHandler Objects
class ErrorHandler(AbstractErrorHandler)
Error handler class for handling problematic envelopes.
__
init__
def __init__(**kwargs: Any)
Instantiate error handler.
send_
unsupported_
protocol
def send_unsupported_protocol(envelope: Envelope, logger: Logger) -> None
Handle the received envelope in case the protocol is not supported.
Arguments:
envelope
: the envelopelogger
: the logger
send_
decoding_
error
def 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
send_
no_
active_
handler
def send_no_active_handler(envelope: Envelope, reason: str,
logger: Logger) -> None
Handle the received envelope in case the handler is not supported.
Arguments:
envelope
: the envelopereason
: the reason for the failurelogger
: the logger