com.evolveum.midpoint.util.exception
Class ConsistencyViolationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.evolveum.midpoint.util.exception.CommonException
              extended by com.evolveum.midpoint.util.exception.ConsistencyViolationException
All Implemented Interfaces:
Serializable

public class ConsistencyViolationException
extends CommonException

Consistency constraint violation prohibits completion of an operation.

The operation that consists of several steps have partially failed. However the operation cannot be finished as finishing the operation would lead to an inconsistent system.

Example: Attempt do delete a user fails with this exception if deleting of any of the linked accounts fails. The user cannot be deleted as deleting the user would result in an orphan account that may never be deleted.

Author:
Radovan Semancik
See Also:
Serialized Form

Constructor Summary
ConsistencyViolationException()
           
ConsistencyViolationException(String message)
           
ConsistencyViolationException(String message, Throwable cause)
           
ConsistencyViolationException(Throwable cause)
           
 
Method Summary
 String getOperationResultMessage()
          TOTO: switch return value to a localized message
 
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

ConsistencyViolationException

public ConsistencyViolationException()

ConsistencyViolationException

public ConsistencyViolationException(String message,
                                     Throwable cause)

ConsistencyViolationException

public ConsistencyViolationException(String message)

ConsistencyViolationException

public ConsistencyViolationException(Throwable cause)
Method Detail

getOperationResultMessage

public String getOperationResultMessage()
Description copied from class: CommonException
TOTO: switch return value to a localized message

Specified by:
getOperationResultMessage in class CommonException
Returns:


Copyright © 2013 evolveum. All Rights Reserved.