Interface InvalidFieldsEvent


public interface InvalidFieldsEvent
An event raised when one or more of the fields sent in a client event are invalid. For more about how such an error can arise, see TradeListener.receiveInvalidFieldsEvent(InvalidFieldsEvent).
  • Method Details

    • getTrade

      Trade getTrade()
      Gets the Trade object to which this InvalidFieldsEvent relates. As long as your code executes on the thread in which TradeListener.receiveInvalidFieldsEvent(InvalidFieldsEvent) was called, the Trade's fields will not be updated by subsequent events, though its state may change.
      Returns:
      The Trade object.
    • getTradeEvent

      TradeEvent getTradeEvent()
      Gets the TradeEvent that was invalid.
      Returns:
      The TradeEvent.
    • getStateName

      String getStateName()
      Gets the state that the Trade was in when the event with invalid fields was received.
      Returns:
      The name of the Trade state.
    • getInvalidFields

      LinkedHashSet<String> getInvalidFields()
      Gets the fields in the client event that were invalid.
      Returns:
      The invalid fields.
    • getMessage

      String getMessage()
      Gets the error message relating to the invalid fields event.
      Returns:
      The error message.