org.alphadisplaytag.exception
Class BaseNestableRuntimeException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended byorg.alphadisplaytag.exception.BaseNestableRuntimeException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
TablePropertiesLoadException

public abstract class BaseNestableRuntimeException
extends java.lang.RuntimeException

Base runtime exception: extendes RuntimeException providing logging and exception nesting functionalities.

Version:
$Revision: 1.1 $ ($Author: fgiust $)
Author:
fgiust
See Also:
Serialized Form

Constructor Summary
BaseNestableRuntimeException(java.lang.Class source, java.lang.String message)
          Instantiate a new BaseNestableRuntimeException.
BaseNestableRuntimeException(java.lang.Class source, java.lang.String message, java.lang.Throwable cause)
          Instantiate a new BaseNestableRuntimeException.
 
Method Summary
 java.lang.Throwable getCause()
          returns the previous exception.
abstract  SeverityEnum getSeverity()
          subclasses need to define the getSeverity method to provide correct severity for logging.
 java.lang.String toString()
          basic toString.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BaseNestableRuntimeException

public BaseNestableRuntimeException(java.lang.Class source,
                                    java.lang.String message)
Instantiate a new BaseNestableRuntimeException.

Parameters:
source - Class where the exception is generated
message - message

BaseNestableRuntimeException

public BaseNestableRuntimeException(java.lang.Class source,
                                    java.lang.String message,
                                    java.lang.Throwable cause)
Instantiate a new BaseNestableRuntimeException.

Parameters:
source - Class where the exception is generated
message - message
cause - previous Exception
Method Detail

getCause

public java.lang.Throwable getCause()
returns the previous exception.

Returns:
Throwable previous exception

toString

public java.lang.String toString()
basic toString. Returns the message plus the previous exception (if a previous exception exists).

Returns:
String

getSeverity

public abstract SeverityEnum getSeverity()
subclasses need to define the getSeverity method to provide correct severity for logging.

Returns:
SeverityEnum exception severity
See Also:
SeverityEnum


Alphabetical Navigation Bar Java Display Tag Home Page. 

My Home Page. Contact me at: chauvetp@hotmail.com.
I am alway looking for Java/J2EE work and would appreciate the business. Some of my design is inspired by the original display tag <display:*> code. Please go to http://displaytag.sourceforge.net/ for details on the <display:*> tag.

Copyright © 2004 Aiki Innovations Inc. Permission is granted to reuse and distribute for commercial or personal use if no extensive monetary gain is received. Java and the Java Standard Tag Library are programming languages owed by Sun Microsystems, Inc: http://java.sun.com/products/jsp/jstl/