org.opends.server.admin
Class DefinitionDecodingException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.opends.server.types.OpenDsException
              extended by org.opends.server.admin.AdminException
                  extended by org.opends.server.admin.OperationsException
                      extended by org.opends.server.admin.DecodingException
                          extended by org.opends.server.admin.DefinitionDecodingException
All Implemented Interfaces:
java.io.Serializable

public class DefinitionDecodingException
extends DecodingException

The requested managed object was found but its type could not be determined.

See Also:
Serialized Form

Nested Class Summary
static class DefinitionDecodingException.Reason
          An enumeration defining the reasons why the definition could not be resolved.
 
Constructor Summary
DefinitionDecodingException(AbstractManagedObjectDefinition<?,?> d, DefinitionDecodingException.Reason reason)
          Create a new definition decoding exception.
 
Method Summary
 AbstractManagedObjectDefinition<?,?> getManagedObjectDefinition()
          Gets the expected managed object definition.
 DefinitionDecodingException.Reason getReason()
          Gets the reason why the definition could not be determined.
 
Methods inherited from class org.opends.server.types.OpenDsException
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

DefinitionDecodingException

public DefinitionDecodingException(AbstractManagedObjectDefinition<?,?> d,
                                   DefinitionDecodingException.Reason reason)
Create a new definition decoding exception.

Parameters:
d - The expected type of managed object.
reason - The reason why the definition could not be determined.
Method Detail

getManagedObjectDefinition

public AbstractManagedObjectDefinition<?,?> getManagedObjectDefinition()
Gets the expected managed object definition.

Returns:
Returns the expected managed object definition.

getReason

public DefinitionDecodingException.Reason getReason()
Gets the reason why the definition could not be determined.

Returns:
Returns the reason why the definition could not be determined.