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.
| Access | Constructor and Description |
|---|---|
| protected | |
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public static ValidationException | |
| protected String | |
| public String | getMessage()
Overrides java. |
| public String |
| ValidationException | back to summary |
|---|---|
| protected ValidationException(XMLValidationProblem cause, String msg) | |
| ValidationException | back to summary |
|---|---|
| protected ValidationException(XMLValidationProblem cause, String msg, Location loc) | |
| create | back to summary |
|---|---|
| public static ValidationException 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.
| |