org.jibx.runtime
Class JiBXConstrainedParseException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.jibx.runtime.JiBXException
org.jibx.runtime.JiBXParseException
org.jibx.runtime.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:
- Serialized Form
|
Method Summary |
boolean |
equals(Object obj)
Solely used by unit tests. |
String |
getMessage()
Append useful parsing details onto the default message. |
JiBXConstrainedParseException
public JiBXConstrainedParseException(String msg,
String value,
String[] allowableValues)
JiBXConstrainedParseException
public JiBXConstrainedParseException(String msg,
String value,
String[] allowableValues,
String namespace,
String tagName,
Throwable root)
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
Copyright © 2005-2011 jibx.org. All Rights Reserved.