Class OperationRejectedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.forgerock.opendj.config.AdminException
org.forgerock.opendj.config.client.OperationRejectedException
- All Implemented Interfaces:
Serializable
,LocalizableException
This exception is thrown when the client or server refuses to create, delete,
or modify a managed object due to one or more constraints that cannot be
satisfied.
Operations can be rejected either by a client-side constraint violation
triggered by ClientConstraintHandler
, or by a server-side error.
For example, the Directory Server might not be able perform an operation due to some OS related problem, such as lack of disk space, or missing files.
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
The type of operation that caused this exception. -
Constructor Summary
ConstructorDescriptionOperationRejectedException
(OperationRejectedException.OperationType type, LocalizableMessage ufn, List<LocalizableMessage> messages) Creates a new operation rejected exception with the provided messages.OperationRejectedException
(OperationRejectedException.OperationType type, LocalizableMessage ufn, LocalizableMessage message) Creates a new operation rejected exception with the provided message. -
Method Summary
Modifier and TypeMethodDescriptionGets an unmodifiable collection view of the messages describing the constraint violations that occurred.Gets the type of operation that caused this exception.Gets the user friendly name of the component that caused this exception.Methods inherited from class org.forgerock.opendj.config.AdminException
getMessageObject
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
OperationRejectedException
public OperationRejectedException(OperationRejectedException.OperationType type, LocalizableMessage ufn, List<LocalizableMessage> messages) Creates a new operation rejected exception with the provided messages.- Parameters:
type
- The type of operation that caused this exception.ufn
- The user friendly name of the component that caused this exception.messages
- The messages describing the constraint violations that occurred (must be non-null
and non-empty).
-
OperationRejectedException
public OperationRejectedException(OperationRejectedException.OperationType type, LocalizableMessage ufn, LocalizableMessage message) Creates a new operation rejected exception with the provided message.- Parameters:
type
- The type of operation that caused this exception.ufn
- The user friendly name of the component that caused this exception.message
- The message describing the constraint violation that occurred.
-
-
Method Details
-
getMessages
Gets an unmodifiable collection view of the messages describing the constraint violations that occurred.- Returns:
- Returns an unmodifiable collection view of the messages describing the constraint violations that occurred.
-
getOperationType
Gets the type of operation that caused this exception.- Returns:
- Returns the type of operation that caused this exception.
-
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.
-