org.opends.server.admin
Class PropertyException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.opends.server.admin.AdminRuntimeException
                  extended by org.opends.server.admin.PropertyException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
DefaultBehaviorException, IllegalPropertyValueException, IllegalPropertyValueStringException, PropertyIsMandatoryException, PropertyIsReadOnlyException, PropertyIsSingleValuedException, UnknownPropertyDefinitionException

public abstract class PropertyException
extends AdminRuntimeException

Exceptions thrown as a result of errors that occurred when decoding and modifying property values.

See Also:
Serialized Form

Constructor Summary
protected PropertyException(PropertyDefinition<?> pd, Message message)
          Creates property exception without a cause.
protected PropertyException(PropertyDefinition<?> pd, Message message, java.lang.Throwable cause)
          Creates property exception with a cause.
 
Method Summary
 PropertyDefinition<?> getPropertyDefinition()
          Get the property definition associated with the property that caused the exception.
 
Methods inherited from class org.opends.server.admin.AdminRuntimeException
getMessageObject
 
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

protected PropertyException(PropertyDefinition<?> pd,
                            Message message)
Creates property exception without a cause.

Parameters:
pd - The property definition associated with the property that caused the exception.
message - The message.

PropertyException

protected PropertyException(PropertyDefinition<?> pd,
                            Message message,
                            java.lang.Throwable cause)
Creates property exception with a cause.

Parameters:
pd - The property definition associated with the property that caused the exception.
message - The message.
cause - The cause.
Method Detail

getPropertyDefinition

public final PropertyDefinition<?> getPropertyDefinition()
Get the property definition associated with the property that caused the exception.

Returns:
Returns the property definition associated with the property that caused the exception.