net.walend.ejb
Class NestedEJBException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--java.lang.RuntimeException
                    |
                    +--javax.ejb.EJBException
                          |
                          +--net.walend.ejb.NestedEJBException
All Implemented Interfaces:
HasNestedThrowable, java.io.Serializable

public class NestedEJBException
extends javax.ejb.EJBException
implements HasNestedThrowable

A EJBException that wraps another Throwable.

Since:
20000906
Author:
David Walend

Field Summary
private  java.lang.Throwable nested
           
 
Fields inherited from class javax.ejb.EJBException
 
Fields inherited from class java.lang.RuntimeException
 
Fields inherited from class java.lang.Throwable
 
Constructor Summary
NestedEJBException(java.lang.String message)
           
NestedEJBException(java.lang.String message, java.lang.Throwable nestedThrowable)
           
NestedEJBException(java.lang.Throwable nestedThrowable)
           
 
Method Summary
 java.lang.String getMessage()
          Returns this exception's message, followed by the nested Throwable's message, surrounded by []'s.
 java.lang.Throwable getNestedThrowable()
          Returns the nested Throwable, or null if there doesn't happent to be one.
 boolean hasNestedThrowable()
           
 void printLimitedStackTrace()
           
 void printLimitedStackTrace(java.io.PrintStream ps)
          Print the stack trace of just this Throwable.
 void printLimitedStackTrace(java.io.PrintWriter pw)
          Print the stack trace of just this Throwable.
 void printStackTrace()
           
 void printStackTrace(java.io.PrintStream ps)
           
 void printStackTrace(java.io.PrintWriter pw)
           
 
Methods inherited from class javax.ejb.EJBException
getCausedByException
 
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
 

Field Detail

nested

private java.lang.Throwable nested
Constructor Detail

NestedEJBException

public NestedEJBException(java.lang.String message)

NestedEJBException

public NestedEJBException(java.lang.Throwable nestedThrowable)

NestedEJBException

public NestedEJBException(java.lang.String message,
                          java.lang.Throwable nestedThrowable)
Method Detail

getNestedThrowable

public java.lang.Throwable getNestedThrowable()
Description copied from interface: HasNestedThrowable
Returns the nested Throwable, or null if there doesn't happent to be one.

Specified by:
getNestedThrowable in interface HasNestedThrowable

hasNestedThrowable

public boolean hasNestedThrowable()
Specified by:
hasNestedThrowable in interface HasNestedThrowable

getMessage

public java.lang.String getMessage()
Returns this exception's message, followed by the nested Throwable's message, surrounded by []'s.

Overrides:
getMessage in class javax.ejb.EJBException

printStackTrace

public void printStackTrace()
Overrides:
printStackTrace in class javax.ejb.EJBException

printStackTrace

public void printStackTrace(java.io.PrintStream ps)
Overrides:
printStackTrace in class javax.ejb.EJBException

printStackTrace

public void printStackTrace(java.io.PrintWriter pw)
Overrides:
printStackTrace in class javax.ejb.EJBException

printLimitedStackTrace

public void printLimitedStackTrace()

printLimitedStackTrace

public void printLimitedStackTrace(java.io.PrintStream ps)
Description copied from interface: HasNestedThrowable
Print the stack trace of just this Throwable.

Specified by:
printLimitedStackTrace in interface HasNestedThrowable

printLimitedStackTrace

public void printLimitedStackTrace(java.io.PrintWriter pw)
Description copied from interface: HasNestedThrowable
Print the stack trace of just this Throwable.

Specified by:
printLimitedStackTrace in interface HasNestedThrowable


Copyright (c) 2000, 2001, David Walend