org.tubo.exception.baseimpl
Class BaseExceptionManagerImpl

java.lang.Object
  extended by org.tubo.exception.baseimpl.BaseExceptionManagerImpl
All Implemented Interfaces:
ExceptionManager
Direct Known Subclasses:
SpringExceptiomManagerImpl

public class BaseExceptionManagerImpl
extends java.lang.Object
implements ExceptionManager

Created: Sep 28, 2006, 12:43:19 PM Last Modification Date: $Date: 2006-10-19 12:11:35 -0300 (Thu, 19 Oct 2006) $

Version:
$Revision: 17 $
Author:
maldito_orco (maldito_orco@users.sourceforge.net)

Nested Class Summary
protected  class BaseExceptionManagerImpl.Rank
           
 
Field Summary
static java.lang.String RCS_ID
           
 
Constructor Summary
BaseExceptionManagerImpl()
           
 
Method Summary
protected  void addRank(BaseExceptionManagerImpl.Rank rank)
          Add rank to global rank list TODO: check ranks overlaping
 TuboException getException(int errorCode)
           
 TuboException getException(int errorCode, java.lang.Object arg1)
           
 TuboException getException(int errorCode, java.lang.Object[] args)
           
 TuboException getException(int errorCode, java.lang.Object[] args, java.lang.Throwable cause)
           
 TuboException getException(int errorCode, java.lang.Object arg1, java.lang.Object arg2)
           
 TuboException getException(int errorCode, java.lang.Object arg1, java.lang.Object arg2, java.lang.Throwable cause)
           
 TuboException getException(int errorCode, java.lang.Object arg1, java.lang.Throwable cause)
           
 TuboException getException(int errorCode, java.lang.Throwable cause)
           
 TuboException getException(java.lang.String exceptionId, java.lang.String messageId, java.lang.Object[] args, java.lang.Throwable cause)
           
 TuboException getException(java.lang.String exceptionId, java.lang.String message, java.lang.Throwable cause)
          Hook method to create a new exception instance based on ID.
 void setResourceManager(ResourceManager resourceManager)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RCS_ID

public static final java.lang.String RCS_ID
See Also:
Constant Field Values
Constructor Detail

BaseExceptionManagerImpl

public BaseExceptionManagerImpl()
Method Detail

setResourceManager

public void setResourceManager(ResourceManager resourceManager)
                        throws TuboException
Specified by:
setResourceManager in interface ExceptionManager
Throws:
TuboException

addRank

protected void addRank(BaseExceptionManagerImpl.Rank rank)
                throws TuboException
Add rank to global rank list TODO: check ranks overlaping

Parameters:
rank -
Throws:
TuboException

getException

public TuboException getException(int errorCode)
Specified by:
getException in interface ExceptionManager

getException

public TuboException getException(int errorCode,
                                  java.lang.Object arg1)
Specified by:
getException in interface ExceptionManager

getException

public TuboException getException(int errorCode,
                                  java.lang.Object arg1,
                                  java.lang.Object arg2)
Specified by:
getException in interface ExceptionManager

getException

public TuboException getException(int errorCode,
                                  java.lang.Object[] args)
Specified by:
getException in interface ExceptionManager

getException

public TuboException getException(int errorCode,
                                  java.lang.Throwable cause)
Specified by:
getException in interface ExceptionManager

getException

public TuboException getException(int errorCode,
                                  java.lang.Object arg1,
                                  java.lang.Throwable cause)
Specified by:
getException in interface ExceptionManager

getException

public TuboException getException(int errorCode,
                                  java.lang.Object arg1,
                                  java.lang.Object arg2,
                                  java.lang.Throwable cause)
Specified by:
getException in interface ExceptionManager

getException

public TuboException getException(int errorCode,
                                  java.lang.Object[] args,
                                  java.lang.Throwable cause)
Specified by:
getException in interface ExceptionManager

getException

public TuboException getException(java.lang.String exceptionId,
                                  java.lang.String messageId,
                                  java.lang.Object[] args,
                                  java.lang.Throwable cause)
Specified by:
getException in interface ExceptionManager

getException

public TuboException getException(java.lang.String exceptionId,
                                  java.lang.String message,
                                  java.lang.Throwable cause)
Hook method to create a new exception instance based on ID. This default implementation to create a TuboException

Specified by:
getException in interface ExceptionManager
Parameters:
exceptionId - exception identifier
Returns:
by default returns TuboException for any exceptionId


Copyright © 2004-2007 Tubo. All Rights Reserved.