jas.util
Class NestedException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--jas.util.NestedException
All Implemented Interfaces:
HasNestedException, java.io.Serializable
Direct Known Subclasses:
JASDOMParser.XMLException, JASException, LoaderException, ModuleException, ObjectFactoryException, OpenJobException

public class NestedException
extends java.lang.Exception
implements HasNestedException

See Also:
Serialized Form

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

NestedException

public NestedException()
Create a remote exception

NestedException

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

NestedException

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

formatNestedException

public static java.lang.String formatNestedException(HasNestedException t)

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