public class OperationRejectedException extends AdminException
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.
| Modifier and Type | Class and Description |
|---|---|
static class |
OperationRejectedException.OperationType
The type of operation that caused this exception.
|
| Constructor and Description |
|---|
OperationRejectedException(OperationRejectedException.OperationType type,
org.forgerock.i18n.LocalizableMessage ufn)
Creates a new operation rejected exception with a default message.
|
OperationRejectedException(OperationRejectedException.OperationType type,
org.forgerock.i18n.LocalizableMessage ufn,
Collection<org.forgerock.i18n.LocalizableMessage> messages)
Creates a new operation rejected exception with the provided messages.
|
OperationRejectedException(OperationRejectedException.OperationType type,
org.forgerock.i18n.LocalizableMessage ufn,
org.forgerock.i18n.LocalizableMessage message)
Creates a new operation rejected exception with the provided message.
|
| Modifier and Type | Method and Description |
|---|---|
Collection<org.forgerock.i18n.LocalizableMessage> |
getMessages()
Gets an unmodifiable collection view of the messages describing the
constraint violations that occurred.
|
org.forgerock.i18n.LocalizableMessage |
getMessagesAsSingleMessage()
Creates a single message listing all the messages combined into a single
list separated by semi-colons.
|
OperationRejectedException.OperationType |
getOperationType()
Gets the type of operation that caused this exception.
|
org.forgerock.i18n.LocalizableMessage |
getUserFriendlyName()
Gets the user friendly name of the component that caused this exception.
|
getMessageObjectaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic OperationRejectedException(OperationRejectedException.OperationType type, org.forgerock.i18n.LocalizableMessage ufn)
type - The type of operation that caused this exception.ufn - The user friendly name of the component that caused this
exception.public OperationRejectedException(OperationRejectedException.OperationType type, org.forgerock.i18n.LocalizableMessage ufn, Collection<org.forgerock.i18n.LocalizableMessage> messages)
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).public OperationRejectedException(OperationRejectedException.OperationType type, org.forgerock.i18n.LocalizableMessage ufn, org.forgerock.i18n.LocalizableMessage message)
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.public Collection<org.forgerock.i18n.LocalizableMessage> getMessages()
public org.forgerock.i18n.LocalizableMessage getMessagesAsSingleMessage()
public OperationRejectedException.OperationType getOperationType()
public org.forgerock.i18n.LocalizableMessage getUserFriendlyName()
Copyright © 2017-2020 Wren Security. All Rights Reserved.