de.smartics.exceptions.i18n
Class MethodAccessConfigurationException

Package class diagram package MethodAccessConfigurationException
java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by de.smartics.exceptions.AbstractCoreRuntimeException
                  extended by de.smartics.exceptions.i18n.AbstractLocalizedRuntimeException
                      extended by de.smartics.exceptions.i18n.ConfigurationException
                          extended by de.smartics.exceptions.i18n.PropertyAccessConfigurationException
                              extended by 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.
 
Fields inherited from class de.smartics.exceptions.i18n.PropertyAccessConfigurationException
clazz, propertyName
 
Fields inherited from class de.smartics.exceptions.i18n.AbstractLocalizedRuntimeException
localizedInfo
 
Fields inherited from class de.smartics.exceptions.AbstractCoreRuntimeException
info
 
Constructor Summary
MethodAccessConfigurationException(ConfigurationExceptionCode code, String propertyName, Class<?> clazz, String methodName)
          Constructor.
MethodAccessConfigurationException(Throwable cause, ConfigurationExceptionCode code, String propertyName, Class<?> clazz, String methodName)
          Constructor.
 
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.PropertyAccessConfigurationException
getClazz, getPropertyName
 
Methods inherited from class de.smartics.exceptions.i18n.AbstractLocalizedRuntimeException
getBundleBaseName, getLocalizedMessage, getLocalizedMessage, getLocalizedMessage, getLocalizedMessage, getMessage, getMessage, getMessage, getMessages, getMessages, getResourceKey
 
Methods inherited from class de.smartics.exceptions.AbstractCoreRuntimeException
getCause, getCode, getId, getTime, toString, truncateCause
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface de.smartics.exceptions.CoreException
getCause, getCode, getId, getStackTrace, getTime, setStackTrace, truncateCause
 

Field Detail

methodName

@MessageParam(value="3")
protected final String methodName
The name of the getter method that has been tried to accessed.

Constructor Detail

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)
Method Detail

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.