org.displaytag.exception
Class BaseNestableRuntimeException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.displaytag.exception.BaseNestableRuntimeException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
FactoryInstantiationException, TablePropertiesLoadException, WrappedRuntimeException

public abstract class BaseNestableRuntimeException
extends java.lang.RuntimeException

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

Version:
$Revision: 1081 $ ($Author: fgiust $)
Author:
Fabrizio Giustina
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.

Overrides:
getCause in class java.lang.Throwable
Returns:
Throwable previous exception

toString

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

Overrides:
toString in class java.lang.Throwable
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


Copyright © 2002-2007 the Displaytag team. All Rights Reserved.