net.sf.saxon.type
Class ValidationException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjavax.xml.transform.TransformerException
              extended bynet.sf.saxon.type.ValidationException
All Implemented Interfaces:
Locator, Serializable, SourceLocator

public class ValidationException
extends TransformerException
implements SourceLocator, Locator

This exception indicates a failure when validating an instance against a type defined in a schema.

Version:
$Revision: 1.1 $ $Date: 2004/03/09 10:10:36 $
Author:
Keith Visco
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.xml.transform.TransformerException
 
Fields inherited from class java.lang.Exception
 
Constructor Summary
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 TransformerException from a message and a Locator.
 
Method Summary
 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
 
Methods inherited from class javax.xml.transform.TransformerException
getCause, getException, getLocationAsString, getMessageAndLocation, initCause, printStackTrace, printStackTrace, printStackTrace, setLocator
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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 TransformerException from a message and a Locator.

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

toString

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

Returns:
the String representation of this Exception

getPublicId

public String getPublicId()
Specified by:
getPublicId in interface SourceLocator

getSystemId

public String getSystemId()
Specified by:
getSystemId in interface SourceLocator

getLineNumber

public int getLineNumber()
Specified by:
getLineNumber in interface SourceLocator

getColumnNumber

public int getColumnNumber()
Specified by:
getColumnNumber in interface SourceLocator

setPublicId

public void setPublicId(String id)

setSystemId

public void setSystemId(String id)

setLineNumber

public void setLineNumber(int line)

setColumnNumber

public void setColumnNumber(int column)

setLocator

public void setLocator(Locator locator)

setSourceLocator

public void setSourceLocator(SourceLocator locator)

getLocator

public SourceLocator getLocator()