public class XMLValidationException extends XMLStreamException
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).
Modifier and Type | Field and Description |
---|---|
protected XMLValidationProblem |
mCause |
location, nested
Modifier | Constructor and Description |
---|---|
protected |
XMLValidationException(XMLValidationProblem cause) |
protected |
XMLValidationException(XMLValidationProblem cause,
String msg) |
protected |
XMLValidationException(XMLValidationProblem cause,
String msg,
Location loc) |
Modifier and Type | Method and Description |
---|---|
static XMLValidationException |
createException(XMLValidationProblem cause) |
XMLValidationProblem |
getValidationProblem() |
protected static void |
throwMissing() |
getLocation, getNestedException
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
protected XMLValidationProblem mCause
protected XMLValidationException(XMLValidationProblem cause)
protected XMLValidationException(XMLValidationProblem cause, String msg)
protected XMLValidationException(XMLValidationProblem cause, String msg, Location loc)
public static XMLValidationException createException(XMLValidationProblem cause)
public XMLValidationProblem getValidationProblem()
protected static void throwMissing() throws RuntimeException
RuntimeException
Copyright © 2015 fasterxml.com. All Rights Reserved.