Class MissingMandatoryPropertiesException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.forgerock.opendj.config.AdminException
-
- org.forgerock.opendj.config.OperationsException
-
- org.forgerock.opendj.config.client.MissingMandatoryPropertiesException
-
- All Implemented Interfaces:
Serializable,org.forgerock.i18n.LocalizableException
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
Constructors Constructor Description MissingMandatoryPropertiesException(org.forgerock.i18n.LocalizableMessage ufn, Collection<PropertyException> causes, boolean isCreate)Creates a new missing mandatory properties exception with the provided causes.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PropertyExceptiongetCause()Gets the first exception that caused this exception.Collection<PropertyException>getCauses()Gets an unmodifiable collection view of the causes of this exception.org.forgerock.i18n.LocalizableMessagegetUserFriendlyName()Gets the user friendly name of the component that caused this exception.booleanisCreate()Indicates whether this exception was thrown during managed object creation or during modification.-
Methods inherited from class org.forgerock.opendj.config.AdminException
getMessageObject
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
MissingMandatoryPropertiesException
public MissingMandatoryPropertiesException(org.forgerock.i18n.LocalizableMessage ufn, Collection<PropertyException> 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-nulland non-empty).isCreate- Indicates whether the exception occurred during managed object creation.
-
-
Method Detail
-
getCause
public PropertyException getCause()
Gets the first exception that caused this exception.
-
getCauses
public Collection<PropertyException> 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 org.forgerock.i18n.LocalizableMessage 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 this exception was thrown during managed object creation or during modification.- Returns:
- Returns
trueif this exception was thrown during managed object creation.
-
-