Class BaseErrorResponder<T extends UserTrade>
java.lang.Object
com.caplin.motif.fx.trading.Responder<T>
com.caplin.motif.fx.trading.orders.edit.responder.BaseErrorResponder<T>
- Type Parameters:
T
- extendsUserTrade
- Direct Known Subclasses:
ClientCloseSentResponder
,EditableResponder
,EditOpenSentResponder
,EditPendingResponder
The base responder for the EditStrategy responders. This allows responders
to send the error event.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionBaseErrorResponder
(T trade) The edit orders use a separate base responder from the rest of the responders as not all states can go to rejected. -
Method Summary
Modifier and TypeMethodDescriptionvoid
sendError
(ErrorEvent<T> event) Sends an ErrorEvent containing an error message and error code
-
Constructor Details
-
BaseErrorResponder
The edit orders use a separate base responder from the rest of the responders as not all states can go to rejected. But most do go to error.- Parameters:
trade
- The underlying trade
-
-
Method Details
-
sendError
Sends an ErrorEvent containing an error message and error code
- Parameters:
event
- The ErrorEvent containing the error message and error code- Throws:
com.caplin.trading.TradeException
- If there was a problem sending the event
-