org.exolab.castor.xml

Class ValidationException


public class ValidationException
extends CastorException

An exception that can be used to signal XML validation errors
Version:
$Revision: 1.1.1.1 $ $Date: 2003/03/03 07:09:16 $
Author:
Keith Visco

Constructor Summary

ValidationException()
Creates a new ValidationException with no message, or nested Exception
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, Exception exception, int errorCode)
Creates a new ValidationException with the given message, nested exception, and errorCode.
ValidationException(String message, int errorCode)
Creates a new ValidationException with the given message.

Method Summary

Exception
getException()
Returns the exception, which in turn caused this Exception to be thrown, or null if nested exception exists.
Location
getLocation()
void
setLocation(Location location)
Sets the location information for this ValidationException
String
toString()
Returns the String representation of this Exception

Methods inherited from class org.exolab.castor.xml.CastorException

getErrorCode, getMessage, setErrorCode, setMessage

Constructor Details

ValidationException

public ValidationException()
Creates a new ValidationException with no message, or nested 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)
Creates a new ValidationException with the given message.
Parameters:
message - the message for this 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,
                           Exception exception,
                           int errorCode)
Creates a new ValidationException with the given message, nested exception, and errorCode.
Parameters:
message - the detail message for this exception
exception - the nested exception
errorCode - the errorCode for this Exception

ValidationException

public ValidationException(String message,
                           int errorCode)
Creates a new ValidationException with the given message.
Parameters:
message - the message for this Exception
errorCode - the errorCode for this Exception

Method Details

getException

public Exception getException()
Returns the exception, which in turn caused this Exception to be thrown, or null if nested exception exists.
Returns:
the exception, which in turn caused this Exception to be thrown, or null if nested exception exists.

getLocation

public Location getLocation()

setLocation

public void setLocation(Location location)
Sets the location information for this ValidationException
Parameters:

toString

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

Intalio Inc. (C) 1999-2003. All rights reserved http://www.intalio.com