Class BaseErrorResponder<T extends UserTrade>

    • 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