com.evolveum.midpoint.schema.exception
Class ConcurrencyException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.evolveum.midpoint.schema.exception.CommonException
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
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 |
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)
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.