Class AvailabilityException

  • All Implemented Interfaces:
    java.io.Serializable

    public class AvailabilityException
    extends EnterpriseSecurityException
    An AvailabilityException should be thrown when the availability of a limited resource is in jeopardy. For example, if a database connection pool runs out of connections, an availability exception should be thrown.
    Author:
    Jeff Williams (jeff.williams@aspectsecurity.com)
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected AvailabilityException()
      Instantiates a new availability exception.
        AvailabilityException​(java.lang.String userMessage, java.lang.String logMessage)
      Creates a new instance of AvailabilityException.
        AvailabilityException​(java.lang.String userMessage, java.lang.String logMessage, java.lang.Throwable cause)
      Instantiates a new AvailabilityException.
    • 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

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • AvailabilityException

        protected AvailabilityException()
        Instantiates a new availability exception.
      • AvailabilityException

        public AvailabilityException​(java.lang.String userMessage,
                                     java.lang.String logMessage)
        Creates a new instance of AvailabilityException.
        Parameters:
        userMessage - the message displayed to the user
        logMessage - the message logged
      • AvailabilityException

        public AvailabilityException​(java.lang.String userMessage,
                                     java.lang.String logMessage,
                                     java.lang.Throwable cause)
        Instantiates a new AvailabilityException.
        Parameters:
        userMessage - the message displayed to the user
        logMessage - the message logged
        cause - the cause