Class ErrorEvent<T extends UserTrade>

  • Type Parameters:
    T - Extends UserTrade which contains the capabilities to obtain fields from the trade message and send trade messages.

    public class ErrorEvent<T extends UserTrade>
    extends ResponderEvent<T>

    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.

    • Constructor Detail

      • ErrorEvent

        public ErrorEvent​(String errorMessage,
                          String errorCode)
        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.