org.exolab.castor.dtx

Class DTXException

public class DTXException extends Exception

A general class for exceptions associated with Castor DTX. Can haved a nested exception or just a regular message.

Version: $Revision: 1.1.1.1 $ $Date: 2003/03/03 07:08:05 $

Author: Evan Prodromou

Constructor Summary
DTXException(Exception except)
Constructor using a nested exception.
DTXException(String message)
Constructor using a simple string message.
Method Summary
StringgetMessage()
Returns this message, or the nested exception's message.
ExceptiongetNestedException()
Gets the nested exception, if there is one.
voidprintStackTrace(PrintWriter out)
voidprintStackTrace(PrintStream out)

Constructor Detail

DTXException

public DTXException(Exception except)
Constructor using a nested exception.

Parameters: except The nested exception.

DTXException

public DTXException(String message)
Constructor using a simple string message.

Parameters: message The message.

Method Detail

getMessage

public String getMessage()
Returns this message, or the nested exception's message.

Returns: String value of the message.

getNestedException

public Exception getNestedException()
Gets the nested exception, if there is one.

Returns: Nested exception, or null if this is a message exception only.

printStackTrace

public void printStackTrace(PrintWriter out)

printStackTrace

public void printStackTrace(PrintStream out)
Intalio Inc. (C) 1999-2004. All rights reserved http://www.intalio.com