de.smartics.exceptions.i18n
Class PropertyAccessConfigurationException

Package class diagram package PropertyAccessConfigurationException
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
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.

Author:
Robert Reiner
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.
 
Fields inherited from class de.smartics.exceptions.i18n.AbstractLocalizedRuntimeException
localizedInfo
 
Fields inherited from class de.smartics.exceptions.AbstractCoreRuntimeException
info
 
Constructor Summary
PropertyAccessConfigurationException(ConfigurationExceptionCode code, String propertyName, Class<?> clazz)
          Constructor.
PropertyAccessConfigurationException(Throwable cause, ConfigurationExceptionCode code, String propertyName, Class<?> clazz)
          Constructor.
 
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
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

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.

Constructor Detail

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

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-null Kronseder & Reiner GmbH - smartics. All Rights Reserved.