net.sf.saxon.type

Class ValidationException

public class ValidationException extends XPathException implements SourceLocator, Locator

This exception indicates a failure when validating an instance against a type defined in a schema.
Constructor Summary
ValidationException(String message)
Creates a new ValidationException with the given message.
ValidationException(Exception exception)
Creates a new ValidationException with the given nested exception.
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.
Method Summary
intgetColumnNumber()
intgetLineNumber()
SourceLocatorgetLocator()
StringgetPublicId()
StringgetSystemId()
voidsetColumnNumber(int column)
voidsetLineNumber(int line)
voidsetLocator(Locator locator)
voidsetPublicId(String id)
voidsetSourceLocator(SourceLocator locator)
voidsetSystemId(String id)
StringtoString()
Returns the String representation of this Exception

Constructor Detail

ValidationException

public ValidationException(String message)
Creates a new ValidationException with the given message.

Parameters: message the message for this Exception

ValidationException

public ValidationException(Exception exception)
Creates a new ValidationException with the given nested exception.

Parameters: exception the nested exception

ValidationException

public ValidationException(String message, Exception exception)
Creates a new ValidationException with the given message and nested exception.

Parameters: message the detail message for this exception exception the nested exception

ValidationException

public ValidationException(String message, SourceLocator locator)
Create a new XPathException from a message and a Locator.

Parameters: message The error or warning message. locator The locator object for the error or warning.

Method Detail

getColumnNumber

public int getColumnNumber()

getLineNumber

public int getLineNumber()

getLocator

public SourceLocator getLocator()

getPublicId

public String getPublicId()

getSystemId

public String getSystemId()

setColumnNumber

public void setColumnNumber(int column)

setLineNumber

public void setLineNumber(int line)

setLocator

public void setLocator(Locator locator)

setPublicId

public void setPublicId(String id)

setSourceLocator

public void setSourceLocator(SourceLocator locator)

setSystemId

public void setSystemId(String id)

toString

public String toString()
Returns the String representation of this Exception

Returns: the String representation of this Exception