org.cementj.base
Class ApplicationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.cementj.base.ApplicationException
All Implemented Interfaces:
java.io.Serializable

public abstract class ApplicationException
extends java.lang.Exception
implements java.io.Serializable

Provides a generic exception for commercial applications that will retain and provide information about the underlying exception.
Note that java.lang.ThreadDeath should not be "converted" into another exception. If ThreadDeath is passed on construction, it will be re-thrown.

An example implementation follows:

 public class MyException extends ApplicationException
 {
    protected MyException() {}
    public MyException(String message) {super(message);}
    public MyException(String message, Throwable t) {super(message, t);}
 }
 

Copyright: Delta Vortex Technologies, 2002.

See Also:
Serialized Form

Constructor Summary
protected ApplicationException()
           
protected ApplicationException(java.lang.String message)
           
protected ApplicationException(java.lang.String message, java.lang.Throwable t)
           
 
Method Summary
 java.lang.Throwable getBaseThrowable()
           
 void printStackTrace()
           
 void printStackTrace(java.io.PrintStream s)
           
 void printStackTrace(java.io.PrintWriter s)
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ApplicationException

protected ApplicationException()

ApplicationException

protected ApplicationException(java.lang.String message)

ApplicationException

protected ApplicationException(java.lang.String message,
                               java.lang.Throwable t)
Method Detail

printStackTrace

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

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

getBaseThrowable

public java.lang.Throwable getBaseThrowable()


Copyright © 2003 Delta Vortex Technologies, Inc. All Rights Reserved.