org.kemet.lf.exceptions
Class ExceptionManager

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.kemet.lf.exceptions.ExceptionManager
All Implemented Interfaces:
java.io.Serializable

public class ExceptionManager
extends java.lang.Exception

Since:
0.3
Author:
fabricemaupin

ExceptionManager : manage errors of application.

See Also:
Serialized Form

Constructor Summary
ExceptionManager(ExceptionsEnum error, java.lang.String message, java.lang.Exception excp)
           intercept exception.
 
Method Summary
 ExceptionsEnum getError()
           return error.
 java.lang.Exception getHiddenException()
           return intercepted exception.
 java.lang.String getMessage()
           return message.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ExceptionManager

public ExceptionManager(ExceptionsEnum error,
                        java.lang.String message,
                        java.lang.Exception excp)

intercept exception.

Parameters:
error - type of error
message - message of error
excp - exception raised
Since:
0.4
Method Detail

getHiddenException

public java.lang.Exception getHiddenException()

return intercepted exception.

Returns:
current exception
Since:
0.3

getError

public ExceptionsEnum getError()

return error.

Returns:
error
Since:
0.4

getMessage

public java.lang.String getMessage()

return message.

Overrides:
getMessage in class java.lang.Throwable
Returns:
message
Since:
0.4


Copyright © 2008 F. MAUPIN. All Rights Reserved.