org.cementj.base
Class ApplicationRuntimeException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.cementj.base.ApplicationRuntimeException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
DataNotFoundException, ImproperUsageException, InternalApplicationException, ResourceException, TransactionException

public abstract class ApplicationRuntimeException
extends java.lang.RuntimeException
implements java.io.Serializable

Provides a generic runtime 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 ApplicationRuntimeException
 {
    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 ApplicationRuntimeException()
           
protected ApplicationRuntimeException(java.lang.String message)
           
protected ApplicationRuntimeException(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

ApplicationRuntimeException

protected ApplicationRuntimeException()

ApplicationRuntimeException

protected ApplicationRuntimeException(java.lang.String message)

ApplicationRuntimeException

protected ApplicationRuntimeException(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.