Class AppException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- fr.paris.lutece.portal.service.util.AppException
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
NoDatabaseException
public class AppException extends 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 This class forces to write to the logs immediatly to protect against swallowing exceptions.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AppException()Constructor 3AppException(String strMessage)Constructor 1AppException(String strMessage, Exception e)Constructor for backwards binary compatibility, same as AppException( String s, Throwable t )AppException(String strMessage, Throwable t)Constructor 2AppException(String strMessage, Throwable t, boolean enableSuppression, boolean writableStackTrace)Constructor 4
-
Method Summary
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
AppException
public AppException(String strMessage)
Constructor 1- Parameters:
strMessage- The error message
-
AppException
public AppException(String strMessage, Throwable t)
Constructor 2- Parameters:
strMessage- The error messaget- The initial throwable
-
AppException
public AppException(String strMessage, Exception e)
Constructor for backwards binary compatibility, same as AppException( String s, Throwable t )- Parameters:
strMessage- The error messagee- The initial exception
-
AppException
public AppException()
Constructor 3
-
-