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 WstxException. Unfortunately
it is not possible to extend it, however, since it extends basic
XMLStreamException, not XMLValidationException.
One more thing to note: unlike some other exception classes, these exceptions do not have chained root causes. That's why no special handling is necessary for setting the root cause in backwards compatible way.
| Access | Constructor and Description |
|---|---|
| protected | |
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public static WstxValidationException | |
| protected String | |
| public String | getMessage()
Overrides java. 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. |
| public String |
| WstxValidationException | back to summary |
|---|---|
| protected WstxValidationException(XMLValidationProblem cause, String msg) | |
| WstxValidationException | back to summary |
|---|---|
| protected WstxValidationException(XMLValidationProblem cause, String msg, Location loc) | |
| create | back to summary |
|---|---|
| public static WstxValidationException create(XMLValidationProblem cause) | |
| getLocationDesc | back to summary |
|---|---|
| protected String getLocationDesc() | |
| getMessage | back to summary |
|---|---|
| public String getMessage() Overrides java. 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.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a short description of this throwable. The result is the concatenation of:
getLocalizedMessage returns null, then just
the class name is returned.
| |