org.displaytag.exception
Class BaseNestableJspTagException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by javax.servlet.jsp.JspException
              extended by javax.servlet.jsp.JspTagException
                  extended by org.displaytag.exception.BaseNestableJspTagException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
DecoratorException, DecoratorInstantiationException, ExportException, InvalidTagAttributeValueException, MissingAttributeException, ObjectLookupException, TagStructureException

public abstract class BaseNestableJspTagException
extends javax.servlet.jsp.JspTagException

Base exception: extendes JspTagException providing logging and exception nesting functionalities.

Version:
$Revision: 1081 $ ($Author: fgiust $)
Author:
Fabrizio Giustina
See Also:
Serialized Form

Constructor Summary
BaseNestableJspTagException(java.lang.Class source, java.lang.String message)
          Instantiate a new BaseNestableJspTagException.
BaseNestableJspTagException(java.lang.Class source, java.lang.String message, java.lang.Throwable cause)
          Instantiate a new BaseNestableJspTagException.
 
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 javax.servlet.jsp.JspException
getRootCause
 
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

BaseNestableJspTagException

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

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

BaseNestableJspTagException

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

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.