public class ValidationException
extends org.codehaus.stax2.validation.XMLValidationException
The current implementation does not add much beyond basic
XMLValidationException
, except for fixing some problems that
underlying XMLStreamException
has.
Note that some of the code is shared with other sub-classes.
Unfortunately it is not possible to extend it, since they extend
XMLStreamException
, not XMLValidationException
.
location, nested
Modifier | Constructor and Description |
---|---|
protected |
ValidationException(org.codehaus.stax2.validation.XMLValidationProblem cause,
String msg) |
protected |
ValidationException(org.codehaus.stax2.validation.XMLValidationProblem cause,
String msg,
Location loc) |
Modifier and Type | Method and Description |
---|---|
static ValidationException |
create(org.codehaus.stax2.validation.XMLValidationProblem cause) |
protected String |
getLocationDesc() |
String |
getMessage()
Method is overridden for two main reasons: first, default method
does not display public/system id information, even if it exists, and
second, default implementation can not handle nested Location
information.
|
String |
toString() |
createException, getValidationProblem, throwMissing
getLocation, getNestedException
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
protected ValidationException(org.codehaus.stax2.validation.XMLValidationProblem cause, String msg)
public static ValidationException create(org.codehaus.stax2.validation.XMLValidationProblem cause)
public String getMessage()
getMessage
in class Throwable
protected String getLocationDesc()
Copyright © 2019 FasterXML. All rights reserved.