jas.util
Class NestedException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by jas.util.NestedException
All Implemented Interfaces:
HasNestedException, Serializable
Direct Known Subclasses:
JASDOMParser.JASXMLException, ObjectFactoryException

public class NestedException
extends Exception
implements HasNestedException

See Also:
Serialized Form

Constructor Summary
NestedException()
          Create a remote exception
NestedException(String s)
          Create a remote exception with the specified string
NestedException(String s, Throwable ex)
          Create a remote exception with the specified string, and the exception specified.
 
Method Summary
static String formatNestedException(HasNestedException t)
           
 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

NestedException

public NestedException()
Create a remote exception


NestedException

public NestedException(String s)
Create a remote exception with the specified string


NestedException

public NestedException(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

formatNestedException

public static String formatNestedException(HasNestedException t)

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.