org.japura.exception
Class HandlerExceptionManager

java.lang.Object
  extended by org.japura.exception.HandlerExceptionManager

public abstract class HandlerExceptionManager
extends java.lang.Object

Pool of handler exception.

Registers handler for a specific or super class exception.

Copyright (C) 2009-2012 Carlos Eduardo Leite de Andrade

This library is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this program. If not, see www.gnu.org/licenses/

For more information, contact: www.japura.org

Author:
Carlos Eduardo Leite de Andrade

Constructor Summary
HandlerExceptionManager()
           
 
Method Summary
static void handle(java.lang.Exception exception)
          Handle an exception.
static void handle(java.lang.Exception exception, java.util.HashMap<java.lang.String,java.lang.Object> parameters)
          Handle an exception.
static void register(java.lang.Class<? extends java.lang.Exception> exceptionClass, HandlerException handler)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HandlerExceptionManager

public HandlerExceptionManager()
Method Detail

register

public static void register(java.lang.Class<? extends java.lang.Exception> exceptionClass,
                            HandlerException handler)

handle

public static void handle(java.lang.Exception exception)
Handle an exception.

Parameters:
exception - Exception

handle

public static void handle(java.lang.Exception exception,
                          java.util.HashMap<java.lang.String,java.lang.Object> parameters)
Handle an exception.

Parameters:
exception - Exception
parameters - HashMap