de.smartics.properties.api.config.domain
Class ConfigurationLoadingException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
de.smartics.properties.api.core.app.PropertyRootException
de.smartics.properties.api.config.domain.ConfigurationException
de.smartics.properties.api.config.domain.ConfigurationLoadingException
-
All Implemented Interfaces:
-
Serializable
-
Direct Known Subclasses:
-
ConfigurationNotFoundException
-
public class ConfigurationLoadingException
-
extends
ConfigurationException
Signals that configuration with the given key cannot be loaded.
-
See Also:
-
Serialized Form
Method Summary |
String |
getResourceId() Returns the string representation of the path of the properties resource that cannot be loaded. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
ConfigurationLoadingException
public ConfigurationLoadingException(ConfigurationKey key,
String resourceId)
-
Convenience constructor without root cause.
-
Parameters:
-
key
- the key to the configuration that signaled problems.
-
resourceId
- the string representation of the path of the properties resource that cannot be loaded.
ConfigurationLoadingException
public ConfigurationLoadingException(Throwable cause,
ConfigurationKey key,
String resourceId)
-
Default Constructor.
-
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.
-
resourceId
- the string representation of the path of the properties resource that cannot be loaded.
getResourceId
public final String getResourceId()
-
Returns the string representation of the path of the properties resource that cannot be loaded. This may be an URL, a file name or whatever seems appropriate.
-
-
Returns:
-
the string representation of the path of the properties resource that cannot be loaded.
Copyright © 2012-2013
Kronseder & Reiner GmbH - smartics. All Rights Reserved.