de.smartics.exceptions.i18n
Class MethodAccessConfigurationException
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
de.smartics.exceptions.i18n.MethodAccessConfigurationException
-
All Implemented Interfaces:
-
CoreException,
LocalizedException,
Serializable
-
@ParentMessageParam(value="cause=2:message")
public class MethodAccessConfigurationException
-
extends
PropertyAccessConfigurationException
This exception is thrown if the configuration is not valid so that the system cannot evaluate the exception property.
-
Author:
-
Robert Reiner
-
See Also:
-
Serialized Form
Field Summary |
protected String |
methodName The name of the getter method that has been tried to accessed. |
Method Summary |
String |
getMethodName() Returns the name of the getter method that has been tried to accessed. |
Methods inherited from class de.smartics.exceptions.i18n.AbstractLocalizedRuntimeException |
getBundleBaseName, getLocalizedMessage, getLocalizedMessage, getLocalizedMessage, getLocalizedMessage, getMessage, getMessage, getMessage, getMessages, getMessages, getResourceKey |
methodName
@MessageParam(value="3")
protected final String methodName
-
The name of the getter method that has been tried to accessed.
MethodAccessConfigurationException
public MethodAccessConfigurationException(ConfigurationExceptionCode code,
String propertyName,
Class<?> clazz,
String methodName)
-
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.
-
methodName
- the name of the getter method that has been tried to accessed.
-
See Also:
-
MethodAccessConfigurationException(Throwable,ConfigurationExceptionCode,java.lang.String,java.lang.Class,java.lang.String)
MethodAccessConfigurationException
public MethodAccessConfigurationException(Throwable cause,
ConfigurationExceptionCode code,
String propertyName,
Class<?> clazz,
String methodName)
-
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.
-
methodName
- the name of the getter method that has been tried to accessed.
-
See Also:
-
PropertyAccessConfigurationException.PropertyAccessConfigurationException(java.lang.Throwable,ConfigurationExceptionCode,String,Class)
getMethodName
public String getMethodName()
-
Returns the name of the getter method that has been tried to accessed.
-
-
Returns:
-
the name of the getter method that has been tried to accessed.
Copyright © 2007-null
Kronseder & Reiner GmbH - smartics. All Rights Reserved.