net.larsan.norna.util
Class NestedException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--net.larsan.norna.util.NestedException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
LogException, UnavailableException

public class NestedException
extends java.lang.Exception

A nested exception base class.

Version:
Alpha-0.2 / 2002-10-06 21:37
Author:
Lars J. Nilsson
See Also:
Serialized Form

Constructor Summary
NestedException()
          Create exception
NestedException(java.lang.String msg)
          Create exception
NestedException(java.lang.String msg, java.lang.Throwable error)
          Create exception
NestedException(java.lang.Throwable th)
          Create exception
 
Method Summary
 java.lang.String getMessage()
          Get exception message
 java.lang.Throwable getNestedException()
          Get nested error, this returns null if there is no nested exception
 java.lang.String getNestedMessage()
          Get nested message, this returns null if there is no nested exception
 void printStackTrace()
          Print stack trace to system err.
 void printStackTrace(java.io.PrintStream ps)
          Print stack trace
 void printStackTrace(java.io.PrintWriter wr)
          Print stack trace
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NestedException

public NestedException()
Create exception


NestedException

public NestedException(java.lang.String msg)
Create exception


NestedException

public NestedException(java.lang.Throwable th)
Create exception


NestedException

public NestedException(java.lang.String msg,
                       java.lang.Throwable error)
Create exception

Method Detail

getNestedException

public java.lang.Throwable getNestedException()
Get nested error, this returns null if there is no nested exception


getNestedMessage

public java.lang.String getNestedMessage()
Get nested message, this returns null if there is no nested exception


getMessage

public java.lang.String getMessage()
Get exception message

Overrides:
getMessage in class java.lang.Throwable

printStackTrace

public void printStackTrace()
Print stack trace to system err.

Overrides:
printStackTrace in class java.lang.Throwable

printStackTrace

public void printStackTrace(java.io.PrintWriter wr)
Print stack trace

Overrides:
printStackTrace in class java.lang.Throwable

printStackTrace

public void printStackTrace(java.io.PrintStream ps)
Print stack trace

Overrides:
printStackTrace in class java.lang.Throwable