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

String
getMessage()
Returns this message, or the nested exception's message.
Exception
getNestedException()
Gets the nested exception, if there is one.
void
printStackTrace(PrintStream out)
void
printStackTrace(PrintWriter out)

Constructor Details

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 Details

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(PrintStream out)

printStackTrace

public void printStackTrace(PrintWriter out)

Intalio Inc. (C) 1999-2003. All rights reserved http://www.intalio.com