org.opends.server.admin.client
Class MissingMandatoryPropertiesException

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.client.MissingMandatoryPropertiesException
All Implemented Interfaces:
java.io.Serializable

public class MissingMandatoryPropertiesException
extends OperationsException

This exception is thrown when an attempt is made to add or modify a managed object when one or more of its mandatory properties are undefined.

See Also:
Serialized Form

Constructor Summary
MissingMandatoryPropertiesException(Message ufn, java.util.Collection<PropertyIsMandatoryException> causes, boolean isCreate)
          Creates a new missing mandatory properties exception with the provided causes.
 
Method Summary
 PropertyIsMandatoryException getCause()
          Gets the first exception that caused this exception.
 java.util.Collection<PropertyIsMandatoryException> getCauses()
          Gets an unmodifiable collection view of the causes of this exception.
 Message getUserFriendlyName()
          Gets the user friendly name of the component that caused this exception.
 boolean isCreate()
          Indicates whether or not this exception was thrown during managed object creation or during modification.
 
Methods inherited from class org.opends.server.types.OpenDsException
getMessageObject
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, 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

MissingMandatoryPropertiesException

public MissingMandatoryPropertiesException(Message ufn,
                                           java.util.Collection<PropertyIsMandatoryException> causes,
                                           boolean isCreate)
Creates a new missing mandatory properties exception with the provided causes.

Parameters:
ufn - The user friendly name of the component that caused this exception.
causes - The causes of this exception (must be non-null and non-empty).
isCreate - Indicates whether the exception occurred during managed object creation.
Method Detail

getCause

public PropertyIsMandatoryException getCause()
Gets the first exception that caused this exception.

Overrides:
getCause in class java.lang.Throwable
Returns:
Returns the first exception that caused this exception.

getCauses

public java.util.Collection<PropertyIsMandatoryException> getCauses()
Gets an unmodifiable collection view of the causes of this exception.

Returns:
Returns an unmodifiable collection view of the causes of this exception.

getUserFriendlyName

public Message getUserFriendlyName()
Gets the user friendly name of the component that caused this exception.

Returns:
Returns the user friendly name of the component that caused this exception.

isCreate

public boolean isCreate()
Indicates whether or not this exception was thrown during managed object creation or during modification.

Returns:
Returns true if this exception was thrown during managed object creation.