jas.util
Class NestedRuntimeException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--java.lang.RuntimeException
                    |
                    +--jas.util.NestedRuntimeException
All Implemented Interfaces:
HasNestedException, java.io.Serializable

public class NestedRuntimeException
extends java.lang.RuntimeException
implements HasNestedException

See Also:
Serialized Form

Constructor Summary
NestedRuntimeException(java.lang.String s, java.lang.Throwable ex)
          Create a remote exception with the specified string, and the exception specified.
NestedRuntimeException(java.lang.Throwable ex)
          Create a nested exception with the specified string
 
Method Summary
 java.lang.String getMessage()
          Produce the message, include the message from the nested exception if there is one.
 java.lang.Throwable getNestedException()
           
 java.lang.String getSimpleMessage()
          Return just the super classes message
 void printStackTrace()
           
 void printStackTrace(java.io.PrintStream s)
           
 void printStackTrace(java.io.PrintWriter s)
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NestedRuntimeException

public NestedRuntimeException(java.lang.Throwable ex)
Create a nested exception with the specified string

NestedRuntimeException

public NestedRuntimeException(java.lang.String s,
                              java.lang.Throwable ex)
Create a remote exception with the specified string, and the exception specified.
Method Detail

getNestedException

public java.lang.Throwable getNestedException()
Specified by:
getNestedException in interface HasNestedException

getMessage

public java.lang.String getMessage()
Produce the message, include the message from the nested exception if there is one.
Specified by:
getMessage in interface HasNestedException
Overrides:
getMessage in class java.lang.Throwable

getSimpleMessage

public java.lang.String getSimpleMessage()
Return just the super classes message
Specified by:
getSimpleMessage in interface HasNestedException

printStackTrace

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

printStackTrace

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

printStackTrace

public void printStackTrace(java.io.PrintWriter s)
Overrides:
printStackTrace in class java.lang.Throwable