Skip to content

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__

 | __init__(**kwargs: Any)

Instantiate error handler.

send_unsupported_protocol

 | send_unsupported_protocol(envelope: Envelope, logger: Logger) -> None

Handle the received envelope in case the protocol is not supported.

Arguments:

  • envelope: the envelope
  • logger: the logger

send_decoding_error

 | send_decoding_error(envelope: Envelope, exception: Exception, logger: Logger) -> None

Handle a decoding error.

Arguments:

  • envelope: the envelope
  • exception: the exception raised during decoding
  • logger: the logger

send_no_active_handler

 | 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 envelope
  • reason: the reason for the failure
  • logger: the logger
Back to top