public class OperationRejectedException extends AdminClientException
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,
LocalizableMessage ufn)
Creates a new operation rejected exception with a default message.
|
OperationRejectedException(OperationRejectedException.OperationType type,
LocalizableMessage ufn,
Collection<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.
|
| Modifier and Type | Method and Description |
|---|---|
Collection<LocalizableMessage> |
getMessages()
Gets an unmodifiable collection view of the messages describing the
constraint violations that occurred.
|
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.
|
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, 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, LocalizableMessage ufn, Collection<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, LocalizableMessage ufn, 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<LocalizableMessage> getMessages()
public LocalizableMessage getMessagesAsSingleMessage()
public OperationRejectedException.OperationType getOperationType()
public LocalizableMessage getUserFriendlyName()
Copyright © 2011-2015 ForgeRock AS. All Rights Reserved.