Class JiBXConstrainedParseException

All Implemented Interfaces:
Serializable

public class JiBXConstrainedParseException extends JiBXParseException
Thrown when a "constrained" parsing exception is encountered (e.g. an enumerated value).
Author:
Joshua Davies
See Also:
  • Field Details

    • m_allowableValues

      private String[] m_allowableValues
  • Constructor Details

    • JiBXConstrainedParseException

      public JiBXConstrainedParseException(String msg, String value, String[] allowableValues)
    • JiBXConstrainedParseException

      public JiBXConstrainedParseException(String msg, String value, String[] allowableValues, String namespace, String tagName, Throwable root)
  • Method Details

    • getMessage

      public String getMessage()
      Description copied from class: JiBXParseException
      Append useful parsing details onto the default message.
      Overrides:
      getMessage in class JiBXParseException
      Returns:
      the default message with "constraint" text appended.
    • equals

      public boolean equals(Object obj)
      Solely used by unit tests.
      Overrides:
      equals in class JiBXParseException
      Parameters:
      obj - what to compare against
      Returns:
      true or false