jas.util
Class NestedRuntimeException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by jas.util.NestedRuntimeException
All Implemented Interfaces:
HasNestedException, Serializable

public class NestedRuntimeException
extends RuntimeException
implements HasNestedException

See Also:
Serialized Form

Constructor Summary
NestedRuntimeException(String s, Throwable ex)
          Create a remote exception with the specified string, and the exception specified.
NestedRuntimeException(Throwable ex)
          Create a nested exception with the specified string
 
Method Summary
 String getMessage()
          Produce the message, include the message from the nested exception if there is one.
 Throwable getNestedException()
           
 String getSimpleMessage()
          Return just the super classes message
 void printStackTrace()
           
 void printStackTrace(PrintStream s)
           
 void printStackTrace(PrintWriter s)
           
 
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

NestedRuntimeException

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


NestedRuntimeException

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

Method Detail

getNestedException

public Throwable getNestedException()
Specified by:
getNestedException in interface HasNestedException

getMessage

public 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 Throwable

getSimpleMessage

public String getSimpleMessage()
Return just the super classes message

Specified by:
getSimpleMessage in interface HasNestedException

printStackTrace

public void printStackTrace()
Overrides:
printStackTrace in class Throwable

printStackTrace

public void printStackTrace(PrintStream s)
Overrides:
printStackTrace in class Throwable

printStackTrace

public void printStackTrace(PrintWriter s)
Overrides:
printStackTrace in class Throwable


Copyright © 2000-2009 FreeHEP. All Rights Reserved.