Class XMLValidationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
javax.xml.stream.XMLStreamException
org.codehaus.stax2.validation.XMLValidationException
- All Implemented Interfaces:
Serializable
Specialized sub-class of
XMLStreamException, to be used for
indicating fatal validation problems (when in mode in which exceptions
are to be thrown).
Note: constructors are protected, since direct instantiation should
be done using factory methods. Reason for this is that the base
XMLStreamException has less than robust handling of optional
arguments, and thus factory methods of this class can take care to
choose appropriate constructors to call, to make sure super-class does
not barf (NPE or such).
- See Also:
-
Field Summary
FieldsFields inherited from class XMLStreamException
location, nested -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedprotectedXMLValidationException(XMLValidationProblem cause, String msg) protectedXMLValidationException(XMLValidationProblem cause, String msg, Location loc) -
Method Summary
Methods inherited from class XMLStreamException
getLocation, getNestedExceptionMethods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
mCause
-
-
Constructor Details
-
XMLValidationException
-
XMLValidationException
-
XMLValidationException
-
-
Method Details
-
createException
-
getValidationProblem
- Returns:
- Object that has all information about details of the validation problem
-
throwMissing
- Throws:
RuntimeException
-