de.smartics.exceptions.i18n
Class PropertyAccessConfigurationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
de.smartics.exceptions.AbstractCoreRuntimeException
de.smartics.exceptions.i18n.AbstractLocalizedRuntimeException
de.smartics.exceptions.i18n.ConfigurationException
de.smartics.exceptions.i18n.PropertyAccessConfigurationException
-
All Implemented Interfaces:
-
CoreException,
LocalizedException,
Serializable
-
Direct Known Subclasses:
-
MethodAccessConfigurationException
-
public class PropertyAccessConfigurationException
-
extends
ConfigurationException
This exception is thrown if the configuration is not valid so that the system cannot evaluate the exception property.
This exception and all subclasses of this exception share the resource bundle with ConfigurationException
. This may change in future and is not considered to be part of the public API.
-
See Also:
-
Serialized Form
Field Summary |
protected Class<?> |
clazz The class that should contain the property but the information cannot be accessed. |
protected String |
propertyName The name of the property that cannot be accessed. |
Method Summary |
Class<?> |
getClazz() Returns the class that should contain the property but the information cannot be accessed. |
String |
getPropertyName() Returns the name of the property that cannot be accessed. |
Methods inherited from class de.smartics.exceptions.i18n.AbstractLocalizedRuntimeException |
createMessages, createMessages, getBundleBaseName, getCauseTrail, getCauseTrail, getLocalizedMessage, getLocalizedMessage, getLocalizedMessage, getLocalizedMessage, getMessage, getMessage, getMessage, getMessages, getMessages, getResourceKey, toString |
clazz
@MessageParam(value="0:canonicalName")
protected final Class<?> clazz
-
The class that should contain the property but the information cannot be accessed.
propertyName
@MessageParam(value="1")
protected final String propertyName
-
The name of the property that cannot be accessed.
PropertyAccessConfigurationException
public PropertyAccessConfigurationException(ConfigurationExceptionCode code,
String propertyName,
Class<?> clazz)
-
Constructor.
-
Parameters:
-
code
- the error or exception code of the exception.
-
propertyName
- the name of the property that cannot be accessed.
-
clazz
- the class that should contain the property but the information cannot be accessed.
-
See Also:
-
PropertyAccessConfigurationException(Throwable,ConfigurationExceptionCode,String,Class)
PropertyAccessConfigurationException
public PropertyAccessConfigurationException(Throwable cause,
ConfigurationExceptionCode code,
String propertyName,
Class<?> clazz)
-
Constructor.
-
Parameters:
-
cause
- the cause (which is saved for later retrieval by the
AbstractCoreRuntimeException.getCause()
method). (A
null value is permitted, and indicates that the cause is nonexistent or unknown.)
-
code
- the error or exception code of the exception.
-
propertyName
- the name of the property that cannot be accessed.
-
clazz
- the class that should contain the property but the information cannot be accessed.
getPropertyName
public String getPropertyName()
-
Returns the name of the property that cannot be accessed.
-
-
Returns:
-
the name of the property that cannot be accessed.
getClazz
public Class<?> getClazz()
-
Returns the class that should contain the property but the information cannot be accessed.
-
-
Returns:
-
the class that should contain the property but the information cannot be accessed.
Copyright © 2007-2013
Kronseder & Reiner GmbH - smartics. All Rights Reserved.