org.exolab.castor.xml
Class MarshalException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--org.exolab.castor.xml.CastorException
|
+--org.exolab.castor.xml.MarshalException
- public class MarshalException
- extends CastorException
An exception that can be used to signal marshalling exceptions
- Version:
- $Revision: 1.6 $ $Date: 2000/11/04 01:31:14 $
- Author:
- Keith Visco
- See Also:
- Serialized Form
Constructor Summary |
MarshalException()
Creates a new MarshalException with no message,
or nested Exception |
MarshalException(java.lang.Exception exception)
Creates a new MarshalException with the given nested
exception. |
MarshalException(java.lang.String message)
Creates a new MarshalException with the given message. |
MarshalException(java.lang.String message,
java.lang.Exception exception)
Creates a new MarshalException with the given message
and nested exception. |
MarshalException(java.lang.String message,
java.lang.Exception exception,
int errorCode)
Creates a new MarshalException with the given message,
nested exception, and errorCode. |
MarshalException(java.lang.String message,
int errorCode)
Creates a new MarshalException with the given message. |
Method Summary |
java.lang.Exception |
getException()
Returns the exception, which in turn caused this Exception to
be thrown, or null if nested exception exists. |
void |
printStackTrace()
|
void |
printStackTrace(java.io.PrintStream printer)
|
void |
printStackTrace(java.io.PrintWriter printer)
|
void |
setLocation(Location location)
Sets the location information for this Exception |
java.lang.String |
toString()
Returns the String representation of this Exception |
Methods inherited from class java.lang.Throwable |
fillInStackTrace,
getLocalizedMessage |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
BASE_CLASS_OR_VOID_ERR
public static final java.lang.String BASE_CLASS_OR_VOID_ERR
NON_SERIALIZABLE_ERR
public static final java.lang.String NON_SERIALIZABLE_ERR
MarshalException
public MarshalException()
- Creates a new MarshalException with no message,
or nested Exception
MarshalException
public MarshalException(java.lang.String message)
- Creates a new MarshalException with the given message.
- Parameters:
message
- the message for this Exception
MarshalException
public MarshalException(java.lang.String message,
int errorCode)
- Creates a new MarshalException with the given message.
- Parameters:
message
- the message for this ExceptionerrorCode
- the errorCode for this Exception
MarshalException
public MarshalException(java.lang.Exception exception)
- Creates a new MarshalException with the given nested
exception.
- Parameters:
exception
- the nested exception
MarshalException
public MarshalException(java.lang.String message,
java.lang.Exception exception)
- Creates a new MarshalException with the given message
and nested exception.
- Parameters:
message
- the detail message for this exceptionexception
- the nested exception
MarshalException
public MarshalException(java.lang.String message,
java.lang.Exception exception,
int errorCode)
- Creates a new MarshalException with the given message,
nested exception, and errorCode.
- Parameters:
message
- the detail message for this exceptionexception
- the nested exceptionerrorCode
- the errorCode for this Exception
getException
public java.lang.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.
setLocation
public void setLocation(Location location)
- Sets the location information for this Exception
- Parameters:
location,
- the location information for this validation
exception
toString
public java.lang.String toString()
- Returns the String representation of this Exception
- Overrides:
- toString in class java.lang.Throwable
- Returns:
- the String representation of this Exception
printStackTrace
public void printStackTrace()
- Overrides:
- printStackTrace in class java.lang.Throwable
printStackTrace
public void printStackTrace(java.io.PrintWriter printer)
- Overrides:
- printStackTrace in class java.lang.Throwable
printStackTrace
public void printStackTrace(java.io.PrintStream printer)
- Overrides:
- printStackTrace in class java.lang.Throwable
Intalio Inc. (C) 1999-2001. All rights reserved http://www.intalio.com