public class ValidationException extends XPathException implements SourceLocator, Locator
XPathException.Circularity
Constructor and Description |
---|
ValidationException(Exception exception)
Creates a new ValidationException with the given nested
exception.
|
ValidationException(String message)
Creates a new ValidationException with the given message.
|
ValidationException(String message,
Exception exception)
Creates a new ValidationException with the given message
and nested exception.
|
ValidationException(String message,
SourceLocator locator)
Create a new XPathException from a message and a Locator.
|
Modifier and Type | Method and Description |
---|---|
int |
getColumnNumber() |
int |
getLineNumber() |
SourceLocator |
getLocator() |
String |
getPublicId() |
String |
getSystemId() |
void |
setColumnNumber(int column) |
void |
setLineNumber(int line) |
void |
setLocator(Locator locator) |
void |
setPublicId(String id) |
void |
setSourceLocator(SourceLocator locator) |
void |
setSystemId(String id) |
String |
toString()
Returns the String representation of this Exception
|
getErrorCodeLocalPart, getErrorCodeNamespace, getErrorObject, hasBeenReported, isTypeError, makeStatic, setErrorCode, setErrorCode, setErrorObject, setHasBeenReported, setIsTypeError
getCause, getException, getLocationAsString, getMessageAndLocation, initCause, printStackTrace, printStackTrace, printStackTrace, setLocator
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, setStackTrace
public ValidationException(String message)
message
- the message for this Exceptionpublic ValidationException(Exception exception)
exception
- the nested exceptionpublic ValidationException(String message, Exception exception)
message
- the detail message for this exceptionexception
- the nested exceptionpublic ValidationException(String message, SourceLocator locator)
message
- The error or warning message.locator
- The locator object for the error or warning.public String toString()
public String getPublicId()
getPublicId
in interface SourceLocator
getPublicId
in interface Locator
public String getSystemId()
getSystemId
in interface SourceLocator
getSystemId
in interface Locator
public int getLineNumber()
getLineNumber
in interface SourceLocator
getLineNumber
in interface Locator
public int getColumnNumber()
getColumnNumber
in interface SourceLocator
getColumnNumber
in interface Locator
public void setPublicId(String id)
public void setSystemId(String id)
public void setLineNumber(int line)
public void setColumnNumber(int column)
public void setLocator(Locator locator)
public void setSourceLocator(SourceLocator locator)
public SourceLocator getLocator()
getLocator
in class TransformerException