|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
org.opends.server.types.OpenDsException
org.opends.server.admin.AdminException
org.opends.server.admin.OperationsException
org.opends.server.admin.DecodingException
org.opends.server.admin.server.ConstraintViolationException
public class ConstraintViolationException
This exception is thrown when the server refuses to use or delete a managed object due to one or more constraints that cannot be satisfied.
Constructor Summary | |
---|---|
ConstraintViolationException(ServerManagedObject<?> managedObject,
java.util.Collection<Message> messages)
Creates a new constraint violation exception with the provided messages. |
|
ConstraintViolationException(ServerManagedObject<?> managedObject,
Message message)
Creates a new constraint violation exception with the provided message. |
Method Summary | |
---|---|
ServerManagedObject<?> |
getManagedObject()
Gets the server managed object which caused the constraint violations. |
java.util.Collection<Message> |
getMessages()
Gets an unmodifiable collection view of the messages describing the constraint violations that occurred. |
Message |
getMessagesAsSingleMessage()
Creates a single message listing all the messages combined into a single list separated by semi-colons. |
Methods inherited from class org.opends.server.types.OpenDsException |
---|
getMessageObject |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ConstraintViolationException(ServerManagedObject<?> managedObject, java.util.Collection<Message> 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, Message message)
managedObject
- The server managed object which caused the constraint
violations.message
- The message describing the constraint violation that
occurred.Method Detail |
---|
public java.util.Collection<Message> getMessages()
public Message getMessagesAsSingleMessage()
public ServerManagedObject<?> getManagedObject()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |