Class JiBXConstrainedParseException

  • All Implemented Interfaces:
    java.io.Serializable

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

      Fields 
      Modifier and Type Field Description
      private java.lang.String[] m_allowableValues  
    • Constructor Summary

      Constructors 
      Constructor Description
      JiBXConstrainedParseException​(java.lang.String msg, java.lang.String value, java.lang.String[] allowableValues)  
      JiBXConstrainedParseException​(java.lang.String msg, java.lang.String value, java.lang.String[] allowableValues, java.lang.String namespace, java.lang.String tagName, java.lang.Throwable root)  
    • Field Detail

      • m_allowableValues

        private java.lang.String[] m_allowableValues
    • Constructor Detail

      • JiBXConstrainedParseException

        public JiBXConstrainedParseException​(java.lang.String msg,
                                             java.lang.String value,
                                             java.lang.String[] allowableValues)
      • JiBXConstrainedParseException

        public JiBXConstrainedParseException​(java.lang.String msg,
                                             java.lang.String value,
                                             java.lang.String[] allowableValues,
                                             java.lang.String namespace,
                                             java.lang.String tagName,
                                             java.lang.Throwable root)
    • Method Detail

      • getMessage

        public java.lang.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​(java.lang.Object obj)
        Solely used by unit tests.
        Overrides:
        equals in class JiBXParseException
        Parameters:
        obj - what to compare against
        Returns:
        true or false