Enhydra 5.1 API

org.enhydra.tool.common
Class ToolException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--org.enhydra.tool.common.ToolException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ArchiveException, ConfigException, DataValidationException, GeneratorException

public class ToolException
extends java.lang.Exception

See Also:
Serialized Form

Constructor Summary
ToolException(java.lang.String message)
          Create a ToolException with a specified error message.
ToolException(java.lang.Throwable chain, java.lang.String message)
          Create a ToolException linked to a parent exception.
 
Method Summary
 java.lang.String getMessage()
          Get a string containing messages from all members of exception chain.
 void printStackTrace()
          Print a recursive stack trace including all members of exception chain.
 void printStackTrace(java.io.PrintStream stream)
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ToolException

public ToolException(java.lang.String message)
Create a ToolException with a specified error message.

Parameters:
message - Message providing information on the nature of the exception.

ToolException

public ToolException(java.lang.Throwable chain,
                     java.lang.String message)
Create a ToolException linked to a parent exception.

Parameters:
chain - Parent exception to include in stack trace.
message - Message providing information on the nature of the exception.
Method Detail

getMessage

public java.lang.String getMessage()
Get a string containing messages from all members of exception chain.

Overrides:
getMessage in class java.lang.Throwable
Returns:
All messages from exceptions in the chain with line feed delimiters.

printStackTrace

public void printStackTrace()
Print a recursive stack trace including all members of exception chain.

Overrides:
printStackTrace in class java.lang.Throwable

printStackTrace

public void printStackTrace(java.io.PrintStream stream)
Overrides:
printStackTrace in class java.lang.Throwable

Enhydra 5.1 API