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
public class BaseErrorResponder<T extends UserTrade> extends Responder<T>
The base responder for the EditStrategy responders. This allows responders to send the error event.
-
-
Constructor Summary
Constructors Constructor Description BaseErrorResponder(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
sendError(ErrorEvent<T> event)
Sends an ErrorEvent containing an error message and error code
-
-
-
Constructor Detail
-
BaseErrorResponder
public BaseErrorResponder(T trade)
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 Detail
-
sendError
public void sendError(ErrorEvent<T> event) throws com.caplin.trading.TradeException
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
-
-