packages.fetchai.skills.error.handlers

This package contains the implementation of the handler for the 'default' protocol.

ErrorHandler Objects

class ErrorHandler(Handler)

This class implements the error handler.

setup

 | setup() -> None

Implement the setup.

Returns:

None

handle

 | handle(message: Message) -> None

Implement the reaction to an envelope.

Arguments:

  • message: the message

teardown

 | teardown() -> None

Implement the handler teardown.

Returns:

None

send_unsupported_protocol

 | send_unsupported_protocol(envelope: Envelope) -> None

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

Arguments:

  • envelope: the envelope

Returns:

None

send_decoding_error

 | send_decoding_error(envelope: Envelope) -> None

Handle a decoding error.

Arguments:

  • envelope: the envelope

Returns:

None

send_unsupported_skill

 | send_unsupported_skill(envelope: Envelope) -> None

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

Arguments:

  • envelope: the envelope

Returns:

None