org.owasp.esapi.errors
Class AvailabilityException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byorg.owasp.esapi.errors.EnterpriseSecurityException
              extended byorg.owasp.esapi.errors.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
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.
 
Methods inherited from class org.owasp.esapi.errors.EnterpriseSecurityException
getLogMessage, getUserMessage
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AvailabilityException

public AvailabilityException(java.lang.String userMessage,
                             java.lang.String logMessage)
Creates a new instance of AvailabilityException.


AvailabilityException

public AvailabilityException(java.lang.String userMessage,
                             java.lang.String logMessage,
                             java.lang.Throwable cause)
Instantiates a new AvailabilityException.

Parameters:
cause - the cause