Public Member Functions | Protected Member Functions

org.exolab.castor.xml.ValidationException Class Reference

Inheritance diagram for org.exolab.castor.xml.ValidationException:
org.exolab.castor.xml.XMLException org.exolab.castor.core.exceptions.CastorException

List of all members.

Public Member Functions

 ValidationException ()
 ValidationException (String message)
 ValidationException (String message, int errorCode)
 ValidationException (Throwable exception)
 ValidationException (String message, Throwable exception)
 ValidationException (String message, Exception exception, int errorCode)
Location getLocation ()
ValidationException getNext ()
void setLocation (Location location)
String toString ()

Protected Member Functions

boolean remove (ValidationException exception)
void setLast (ValidationException exception)
void setNext (ValidationException exception)

Detailed Description

An exception that can be used to signal XML validation errors

Author:
Keith Visco
Version:
Revision:
1.4
Date:
2004/10/05 20:25:24

Constructor & Destructor Documentation

org.exolab.castor.xml.ValidationException.ValidationException (  ) 

Creates a new ValidationException with no message, or nested Exception

org.exolab.castor.xml.ValidationException.ValidationException ( String  message  ) 

Creates a new ValidationException with the given message.

Parameters:
message the message for this Exception
org.exolab.castor.xml.ValidationException.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
org.exolab.castor.xml.ValidationException.ValidationException ( Throwable  exception  ) 

Creates a new ValidationException with the given nested exception.

Parameters:
exception the nested exception
org.exolab.castor.xml.ValidationException.ValidationException ( String  message,
Throwable  exception 
)

Creates a new ValidationException with the given message and nested exception.

Parameters:
message the detail message for this exception
exception the nested exception
org.exolab.castor.xml.ValidationException.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

Member Function Documentation

Location org.exolab.castor.xml.ValidationException.getLocation (  ) 

Returns the location of the exception

Returns:
the location of the exception

Referenced by org.exolab.castor.xml.ValidationException.toString(), and org.exolab.castor.xml.Validator.validate().

ValidationException org.exolab.castor.xml.ValidationException.getNext (  ) 

Returns the next ValidationException in the list, or null if no additional validation exceptions exist.

Returns:
the next ValidationException in the list, or null if there are no additional exceptions.

Referenced by org.exolab.castor.xml.UnmarshalHandler.endElement(), and org.exolab.castor.xml.ValidationException.toString().

boolean org.exolab.castor.xml.ValidationException.remove ( ValidationException  exception  )  [protected]

Removes the given ValidationException from the current list of ValidationException.

Parameters:
exception the ValidationException to remove
Returns:
true if the given ValidationException was successfully removed.
void org.exolab.castor.xml.ValidationException.setLast ( ValidationException  exception  )  [protected]

Adds the given ValidationException as the last exception in the list. This is equivalent to calling setNext if no additional ValidationException(s) exist.

Parameters:
exception the ValidationException to set as the last exception in the list.
void org.exolab.castor.xml.ValidationException.setLocation ( Location  location  ) 

Sets the location information for this ValidationException

Parameters:
location,the location information for this validation exception

Reimplemented from org.exolab.castor.xml.XMLException.

Referenced by org.exolab.castor.xml.Validator.validate().

void org.exolab.castor.xml.ValidationException.setNext ( ValidationException  exception  )  [protected]

Sets the given ValidationException as the next exception in the list. This method will overwrite any existing ValidationException that may already exist as the next exception.

Parameters:
exception the ValidationException to set as the next exception in the list.

Referenced by org.exolab.castor.xml.UnmarshalHandler.endElement().

String org.exolab.castor.xml.ValidationException.toString (  ) 

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties