Class AppException

  • All Implemented Interfaces:
    java.io.Serializable
    Direct Known Subclasses:
    NoDatabaseException

    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 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 3
      AppException​(java.lang.String strMessage)
      Constructor 1
      AppException​(java.lang.String strMessage, java.lang.Exception e)
      Constructor for backwards binary compatibility, same as AppException( String s, Throwable t )
      AppException​(java.lang.String strMessage, java.lang.Throwable t)
      Constructor 2
      AppException​(java.lang.String strMessage, java.lang.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
      • Methods inherited from class java.lang.Object

        equals, 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.Throwable t)
        Constructor 2
        Parameters:
        strMessage - The error message
        t - The initial throwable
      • AppException

        public AppException​(java.lang.String strMessage,
                            java.lang.Exception e)
        Constructor for backwards binary compatibility, same as AppException( String s, Throwable t )
        Parameters:
        strMessage - The error message
        e - The initial exception
      • AppException

        public AppException()
        Constructor 3
      • AppException

        public AppException​(java.lang.String strMessage,
                            java.lang.Throwable t,
                            boolean enableSuppression,
                            boolean writableStackTrace)
        Constructor 4
        Parameters:
        strMessage - The error message
        e - The initial exception
        enableSuppression - enableSuppresion
        writableStackTrace - writableStackTrace