Public Member Functions

org.exolab.castor.xml.XMLException Class Reference

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

List of all members.

Public Member Functions

 XMLException ()
 XMLException (String message)
 XMLException (Throwable exception)
 XMLException (String message, int errorCode)
 XMLException (String message, Throwable exception)
 XMLException (String message, Throwable exception, int errorCode)
void setLocation (Location location)
String toString ()
int getErrorCode ()
void setErrorCode (int errorCode)

Detailed Description

An exception that is used to signal an error that has occured during marshalling or unmarshalling.

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

Constructor & Destructor Documentation

org.exolab.castor.xml.XMLException.XMLException (  ) 

Creates a new XMLException with no message or nested Exception.

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

Creates a new XMLException with the given message.

Parameters:
message the message for this Exception
org.exolab.castor.xml.XMLException.XMLException ( Throwable  exception  ) 

Creates a new XMLException with the given nested exception.

Parameters:
exception the nested exception
org.exolab.castor.xml.XMLException.XMLException ( String  message,
int  errorCode 
)

Creates a new XMLException with the given message.

Parameters:
message the message for this Exception
errorCode the errorCode for this Exception
org.exolab.castor.xml.XMLException.XMLException ( String  message,
Throwable  exception 
)

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

Parameters:
message the detail message for this exception
exception the nested exception
org.exolab.castor.xml.XMLException.XMLException ( String  message,
Throwable  exception,
int  errorCode 
)

Creates a new XMLException 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

int org.exolab.castor.xml.XMLException.getErrorCode (  ) 

Returns the error code for this Exception, or -1 if no error code exists.

Returns:
the error code for this Exception, or -1 if no error code exists
void org.exolab.castor.xml.XMLException.setErrorCode ( int  errorCode  ) 

Sets the error code for this Exception

Parameters:
errorCode the error code
void org.exolab.castor.xml.XMLException.setLocation ( Location  location  ) 

Sets the location information for this Exception

Parameters:
location,the location information for this validation exception

Reimplemented in org.exolab.castor.xml.ValidationException.

Referenced by org.exolab.castor.xml.Unmarshaller.unmarshal().

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

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