org.owasp.esapi.errors
Class ConfigurationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.owasp.esapi.errors.ConfigurationException
All Implemented Interfaces:
java.io.Serializable

public class ConfigurationException
extends java.lang.RuntimeException

A ConfigurationException should be thrown when a problem arises because of a problem in one of ESAPI's configuration files, such as a missing required property or invalid setting of a property, or missing or unreadable configuration file, etc.

A ConfigurationException is a RuntimeException because 1) configuration properties can, for the most part, only be checked at run-time, and 2) we want this to be an unchecked exception to make ESAPI easy to use and not cluttered with catching a bunch of try/catch blocks.

See Also:
Serialized Form

Field Summary
protected static long serialVersionUID
           
 
Constructor Summary
ConfigurationException(java.lang.Exception e)
           
ConfigurationException(java.lang.String s)
           
ConfigurationException(java.lang.String s, java.lang.Throwable cause)
           
ConfigurationException(java.lang.Throwable cause)
           
 
Method Summary
 
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

protected static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

ConfigurationException

public ConfigurationException(java.lang.Exception e)

ConfigurationException

public ConfigurationException(java.lang.String s)

ConfigurationException

public ConfigurationException(java.lang.String s,
                              java.lang.Throwable cause)

ConfigurationException

public ConfigurationException(java.lang.Throwable cause)


Copyright © 2011 The Open Web Application Security Project (OWASP). All Rights Reserved.