de.smartics.properties.api.core.domain
Class PropertyException

Package class diagram package PropertyException
java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by de.smartics.properties.api.core.app.PropertyRootException
                  extended by de.smartics.properties.api.core.domain.PropertyException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
DuplicatePropertyDeclarationException, PropertyDescriptorException

public class PropertyException
     
     
extends PropertyRootException

Base exception of the library for signaling an unspecific cause that is concerned with a specific property.

See Also:
Serialized Form

Constructor Summary
PropertyException(String message, PropertyKey propertyKey)
          Convenience constructor.
PropertyException(String message, Throwable cause, PropertyKey propertyKey)
          Default constructor.
PropertyException(Throwable cause, PropertyKey propertyKey)
          Convenience constructor.
 
Method Summary
 PropertyKey getPropertyKey()
          Returns the key of the property raising the exception.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PropertyException

public PropertyException(String message,
                         Throwable cause,
                         PropertyKey propertyKey)
Default constructor.

Parameters:
message - the detail message (which is saved for later retrieval by the Throwable.getMessage() method).
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.)
propertyKey - the key of the property raising the exception.
See Also:
RuntimeException.RuntimeException(java.lang.String,java.lang.Throwable)

PropertyException

public PropertyException(String message,
                         PropertyKey propertyKey)
Convenience constructor.

Parameters:
message - the detail message (which is saved for later retrieval by the Throwable.getMessage() method).
propertyKey - the key of the property raising the exception.
See Also:
RuntimeException.RuntimeException(java.lang.String,java.lang.Throwable)

PropertyException

public PropertyException(Throwable cause,
                         PropertyKey propertyKey)
Convenience 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.)
propertyKey - the key of the property raising the exception.
See Also:
RuntimeException.RuntimeException(java.lang.String,java.lang.Throwable)
Method Detail

getPropertyKey

public final PropertyKey getPropertyKey()
Returns the key of the property raising the exception.

Returns:
the key of the property raising the exception.


Copyright © 2012-2013 Kronseder & Reiner GmbH - smartics. All Rights Reserved.