org.infoglue.cms.exception
Class ConfigurationError

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Error
              |
              +--org.infoglue.cms.exception.ConfigurationError
All Implemented Interfaces:
java.io.Serializable

public class ConfigurationError
extends java.lang.Error

Thrown to indicate that some configuration resource is not setup correctly, is missing etc.

Examples includes missing key in resource bundle, missing element/attribute in xml file, missing property file...

This is an internal error so there is no need to localize the error message.

Author:
Patrik Nyborg
See Also:
Serialized Form

Constructor Summary
ConfigurationError(java.lang.String message)
          Construct a ConfigurationError with the detailed error message.
ConfigurationError(java.lang.String message, java.lang.Throwable cause)
          Construct a ConfigurationError with the detailed error message and cause.
 
Method Summary
 java.lang.Throwable getCause()
          Returns the cause of this ConfigurationError or null if the cause is nonexistent or unknown.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, 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

ConfigurationError

public ConfigurationError(java.lang.String message)
Construct a ConfigurationError with the detailed error message.

Parameters:
message - the detailed error message.

ConfigurationError

public ConfigurationError(java.lang.String message,
                          java.lang.Throwable cause)
Construct a ConfigurationError with the detailed error message and cause.

Parameters:
message - the detailed error message.
cause - the throwable that caused this ConfigurationError to get thrown.
Method Detail

getCause

public java.lang.Throwable getCause()
Returns the cause of this ConfigurationError or null if the cause is nonexistent or unknown. (The cause is the throwable that caused this ConfigurationError to get thrown).

Overrides:
getCause in class java.lang.Throwable
Returns:
the cause of this ConfigurationError or null if the cause is nonexistent or unknown.