Package org.drasyl.node.event
Class InboundExceptionEvent
- java.lang.Object
-
- org.drasyl.node.event.InboundExceptionEvent
-
- All Implemented Interfaces:
Event
public abstract class InboundExceptionEvent extends Object implements Event
This event signals that the node was unable to process an inbound message. Both application-level messages and internal drasyl signaling messages can trigger this event. The occurrence of this event does not necessarily indicate a bug, it could also be caused by bots/crawlers sending unreadable messages.This is an immutable object.
-
-
Constructor Summary
Constructors Constructor Description InboundExceptionEvent()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract Throwable
getError()
Returns the exception why the message could not be processed.static InboundExceptionEvent
of(Throwable error)
-
-
-
Method Detail
-
getError
@NonNull public abstract Throwable getError()
Returns the exception why the message could not be processed.- Returns:
- the exception why the message could not be processed.
-
of
public static InboundExceptionEvent of(Throwable error)
- Throws:
NullPointerException
- iferror
isnull
-
-