public class ConstraintViolationException extends DecodingException
Constructor and Description |
---|
ConstraintViolationException(ServerManagedObject<?> managedObject,
Collection<LocalizableMessage> messages)
Creates a new constraint violation exception with the provided
messages.
|
ConstraintViolationException(ServerManagedObject<?> managedObject,
LocalizableMessage message)
Creates a new constraint violation exception with the provided
message.
|
Modifier and Type | Method and Description |
---|---|
ServerManagedObject<?> |
getManagedObject()
Gets the server managed object which caused the constraint
violations.
|
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.
|
getMessageObject
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public ConstraintViolationException(ServerManagedObject<?> managedObject, Collection<LocalizableMessage> messages)
managedObject
- The server managed object which caused the constraint
violations.messages
- The messages describing the constraint violations that
occurred (must be non-null
and
non-empty).public ConstraintViolationException(ServerManagedObject<?> managedObject, LocalizableMessage message)
managedObject
- The server managed object which caused the constraint
violations.message
- The message describing the constraint violation that
occurred.public Collection<LocalizableMessage> getMessages()
public LocalizableMessage getMessagesAsSingleMessage()
public ServerManagedObject<?> getManagedObject()
Copyright © 2010-2015 ForgeRock AS. All Rights Reserved.