Package eu.bandm.tools.message
Class MessageThrower<M extends Message>
java.lang.Object
eu.bandm.tools.message.MessageThrower<M>
- Type Parameters:
M- the type of the messages
- All Implemented Interfaces:
MessageReceiver<M>
- Direct Known Subclasses:
UMod2format.ThrowCritical
Calls the explode method of each received message.
Normally that method throws a
MessageException carrying
the message.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface eu.bandm.tools.message.MessageReceiver
ifSubcriticalThen, ifSubcriticalThen, ifSubcriticalThenElse
-
Constructor Details
-
MessageThrower
public MessageThrower()Only constructor
-
-
Method Details
-
receive
Calls the explode method of the received message. Normally that method throws aMessageExceptioncarrying the message.- Specified by:
receivein interfaceMessageReceiver<M extends Message>- Parameters:
message- to wrap and throw.- See Also:
-