why deepstreamHub? compare us getting started faq
use cases
products
developers
company
blog contact

This interface allows to handle common errors centrally rather than in numerous try/catch clauses.

Please note: Errors that are specific to a request, e.g. a RPC timing out or a record not being permissioned are either passed directly to the method that requested them or will be caught by a more specific listener.

Methods

onException(topic,event,error)

void onException(Topic topic, Event event, String errorMessage)
argument type description
topic Topic The Topic the error occured on
event Event The Error Event
errorMessage String The error message

Triggered whenever a runtime error occurs ( mostly async such as TimeOuts or MergeConflicts ). Recieves a topic to indicate if it was e.g. RPC, event and a english error message to simplify debugging.