org.jboss.seam.exception
Class ExceptionHandler

java.lang.Object
  extended by org.jboss.seam.faces.Navigator
      extended by org.jboss.seam.exception.ExceptionHandler
Direct Known Subclasses:
DebugPageHandler, ErrorHandler, RedirectHandler

public abstract class ExceptionHandler
extends Navigator

An element of the chain that knows how to handle a specific exception type.

Author:
Gavin King

Nested Class Summary
static class ExceptionHandler.LogLevel
           
 
Constructor Summary
ExceptionHandler()
           
 
Method Summary
 ExceptionHandler.LogLevel getLogLevel()
           
abstract  void handle(Exception e)
           
abstract  boolean isHandler(Exception e)
           
 boolean isLogEnabled()
           
 void setLogEnabled(boolean logEnabled)
           
 void setLogLevel(ExceptionHandler.LogLevel logLevel)
           
 
Methods inherited from class org.jboss.seam.faces.Navigator
addFacesMessage, error, getDisplayMessage, redirect, redirect, redirectExternal, render
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExceptionHandler

public ExceptionHandler()
Method Detail

handle

public abstract void handle(Exception e)
                     throws Exception
Throws:
Exception

isHandler

public abstract boolean isHandler(Exception e)

isLogEnabled

public boolean isLogEnabled()

setLogEnabled

public void setLogEnabled(boolean logEnabled)

getLogLevel

public ExceptionHandler.LogLevel getLogLevel()

setLogLevel

public void setLogLevel(ExceptionHandler.LogLevel logLevel)