org.exolab.castor.xml
Class XMLException
public class XMLException
An exception that is used to signal an error that
has occured during marshalling or unmarshalling.
$Revision: 6216 $ $Date: 2006-04-25 15:08:23 -0600 (Tue, 25 Apr 2006) $XMLException() - Creates a new XMLException with no message
or nested Exception.
|
XMLException(String message) - Creates a new XMLException with the given message.
|
XMLException(String message, Throwable exception) - Creates a new XMLException with the given message
and nested exception.
|
XMLException(String message, Throwable exception, int errorCode) - Creates a new XMLException with the given message,
nested exception, and errorCode.
|
XMLException(String message, int errorCode) - Creates a new XMLException with the given message.
|
XMLException(Throwable exception) - Creates a new XMLException with the given nested
exception.
|
int | getErrorCode() - Returns the error code for this Exception, or -1 if no error code exists.
|
void | setErrorCode(int errorCode) - Sets the error code for this Exception
|
void | setLocation(Location location) - Sets the location information for this Exception.
|
String | toString() - Returns the String representation of this Exception.
|
XMLException
public XMLException()
Creates a new XMLException with no message
or nested Exception.
XMLException
public XMLException(String message)
Creates a new XMLException with the given message.
message
- the message for this Exception
XMLException
public XMLException(String message,
Throwable exception)
Creates a new XMLException with the given message
and nested exception.
message
- the detail message for this exceptionexception
- the nested exception
XMLException
public XMLException(String message,
Throwable exception,
int errorCode)
Creates a new XMLException with the given message,
nested exception, and errorCode.
message
- the detail message for this exceptionexception
- the nested exceptionerrorCode
- the errorCode for this Exception
XMLException
public XMLException(String message,
int errorCode)
Creates a new XMLException with the given message.
message
- the message for this ExceptionerrorCode
- the errorCode for this Exception
XMLException
public XMLException(Throwable exception)
Creates a new XMLException with the given nested
exception.
exception
- the nested exception
getErrorCode
public int getErrorCode()
Returns the error code for this Exception, or -1 if no error code exists.
- the error code for this Exception, or -1 if no error code exists
setErrorCode
public void setErrorCode(int errorCode)
Sets the error code for this Exception
errorCode
- the error code
setLocation
public void setLocation(Location location)
Sets the location information for this Exception.
location
- The location information for this validation exception.
toString
public String toString()
Returns the String representation of this Exception.
- the String representation of this Exception.
Intalio Inc. (C) 1999-2006. All rights reserved http://www.intalio.com