de.smartics.properties.api.config.domain
Class ConfigurationException

Package class diagram package ConfigurationException
java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by de.smartics.properties.api.core.app.PropertyRootException
                  extended by de.smartics.properties.api.config.domain.ConfigurationException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
CompoundConfigurationException, ConfigurationLoadingException, ConfigurationValidationException, DuplicateConfigurationException, DuplicatePropertyDefinitionException, DuplicatePropertyException, MissingConfigurationException, ResolveConfigurationException, UnknownPropertyException

public class ConfigurationException
     
     
extends PropertyRootException

Signals problems with a configuration.

See Also:
Serialized Form

Constructor Summary
ConfigurationException(String message, ConfigurationKey key)
          Convenience constructor without a root cause.
ConfigurationException(String message, Throwable cause, ConfigurationKey key)
          Constructor.
ConfigurationException(Throwable cause, ConfigurationKey key)
          Convenience constructor without a message.
 
Method Summary
 ConfigurationKey getKey()
          Returns the key to the configuration that signaled problems.
 
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
 

Constructor Detail

ConfigurationException

public ConfigurationException(String message,
                              ConfigurationKey key)
Convenience constructor without a root cause.

Parameters:
message - the detail message (which is saved for later retrieval by the Throwable.getMessage() method).
key - the key to the configuration that signaled problems.

ConfigurationException

public ConfigurationException(Throwable cause,
                              ConfigurationKey key)
Convenience constructor without a message.

Parameters:
cause - the cause (which is saved for later retrieval by the Throwable.getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
key - the key to the configuration that signaled problems.

ConfigurationException

public ConfigurationException(String message,
                              Throwable cause,
                              ConfigurationKey key)
Constructor.

Parameters:
message - the detail message (which is saved for later retrieval by the Throwable.getMessage() method).
cause - the cause (which is saved for later retrieval by the Throwable.getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
key - the key to the configuration that signaled problems.
Method Detail

getKey

public final ConfigurationKey getKey()
Returns the key to the configuration that signaled problems.

Returns:
the key to the configuration that signaled problems.


Copyright © 2012-2013 Kronseder & Reiner GmbH - smartics. All Rights Reserved.