Package com.caplin.motif.fx.trading
Class ErrorEvent<T extends UserTrade>
java.lang.Object
com.caplin.motif.fx.trading.ResponderEvent<T>
com.caplin.motif.fx.trading.ErrorEvent<T>
- Type Parameters:
T
- ExtendsUserTrade
which contains the capabilities to obtain fields from the trade message and send trade messages.
An event that is sent once an error has occurred; which the frontend should be notified about.
Note that error codes are entirely up to the backend, but should allow traders to notify support people of the exact issue. This may come directly from the trading system.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The event name for an Error eventstatic final String
The Error Code fieldstatic final String
The Error Message fieldFields inherited from class com.caplin.motif.fx.trading.ResponderEvent
fields
-
Constructor Summary
ConstructorDescriptionErrorEvent
(String errorMessage, String errorCode) Constructs an error event for the specified message and code. -
Method Summary
Methods inherited from class com.caplin.motif.fx.trading.ResponderEvent
addField, addFields, equals, getEventName, getField, getFields, hashCode, toString
-
Field Details
-
ERROR
The event name for an Error event- See Also:
-
ERROR_CODE
The Error Code field- See Also:
-
ERROR_MESSAGE
The Error Message field- See Also:
-
-
Constructor Details
-
ErrorEvent
Constructs an error event for the specified message and code.- Parameters:
errorMessage
- The error message that will be displayed to the frontend user.errorCode
- The error code that will be displayed to the frontend user.
-