Package eu.bandm.tools.message
Class MessageThrower<M extends Message>
java.lang.Object
eu.bandm.tools.message.MessageThrower<M>
- All Implemented Interfaces:
MessageReceiver<M>
- Direct Known Subclasses:
UMod2format.ThrowCritical
"Throws" each message it receives after wrapping it into a
MessageException
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Throw the message after wrapping it into aMessageException
.
-
Constructor Details
-
MessageThrower
public MessageThrower()
-
-
Method Details
-
receive
Throw the message after wrapping it into aMessageException
.- Specified by:
receive
in interfaceMessageReceiver<M extends Message>
-