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
.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface eu.bandm.tools.message.MessageReceiver
ifSubcriticalThen, ifSubcriticalThen, ifSubcriticalThenElse
-
Constructor Details
-
MessageThrower
public MessageThrower()
-
-
Method Details
-
receive
Throw the message after wrapping it into aMessageException
.- Specified by:
receive
in interfaceMessageReceiver<M extends Message>
- Parameters:
message
- the message to receive.
-