com.evolveum.midpoint.schema.exception
Class ConcurrencyException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.evolveum.midpoint.schema.exception.CommonException
              extended by com.evolveum.midpoint.schema.exception.ConcurrencyException
All Implemented Interfaces:
java.io.Serializable

public class ConcurrencyException
extends CommonException

Exceptional concurrency state or operation invocation. This exception is thrown in case of race conditions and similar conflicting concurrency conditions. It is also thrown in an attempt to acquire already acquired locks and similar cases. This condition is implemented as exception in a hope that it will help avoid silently ignoring the concurrency problems and that the developers will be forced to handle the condition. It is much easier to ignore a return value than to ignore an exception.

Author:
Radovan Semancik
See Also:
Serialized Form

Constructor Summary
ConcurrencyException()
           
ConcurrencyException(java.lang.String message)
           
ConcurrencyException(java.lang.String message, java.lang.Throwable cause)
           
ConcurrencyException(java.lang.Throwable cause)
           
 
Method Summary
 java.lang.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

ConcurrencyException

public ConcurrencyException()

ConcurrencyException

public ConcurrencyException(java.lang.String message)

ConcurrencyException

public ConcurrencyException(java.lang.Throwable cause)

ConcurrencyException

public ConcurrencyException(java.lang.String message,
                            java.lang.Throwable cause)
Method Detail

getOperationResultMessage

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

Specified by:
getOperationResultMessage in class CommonException
Returns:


Copyright © 2012 evolveum. All Rights Reserved.