fr.paris.lutece.portal.service.util
Class AppException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by fr.paris.lutece.portal.service.util.AppException
All Implemented Interfaces:
java.io.Serializable

public class AppException
extends java.lang.RuntimeException

This kind of exception is thrown when the application encounters a critical problem. This class extends RuntimeException in order to avoid try/catch blocks

See Also:
Serialized Form

Constructor Summary
AppException()
          Constructor 3
AppException(java.lang.String strMessage)
          Constructor 1
AppException(java.lang.String strMessage, java.lang.Exception e)
          Constructor 2
 
Method Summary
 java.lang.Exception getInitialException()
          Returns the initial exception.
 java.lang.String getMessage()
          Overides getMessage method
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AppException

public AppException(java.lang.String strMessage)
Constructor 1

Parameters:
strMessage - The error message

AppException

public AppException(java.lang.String strMessage,
                    java.lang.Exception e)
Constructor 2

Parameters:
strMessage - The error message
e - The initial exception

AppException

public AppException()
Constructor 3

Method Detail

getInitialException

public java.lang.Exception getInitialException()
Returns the initial exception.

Returns:
The initial exception.

getMessage

public java.lang.String getMessage()
Overides getMessage method

Overrides:
getMessage in class java.lang.Throwable
Returns:
strMessage The error message


Copyright © 2011 Mairie de Paris. All Rights Reserved.