Class ConcurrencyException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.evolveum.midpoint.util.exception.CommonException
-
- com.evolveum.midpoint.util.exception.ConcurrencyException
-
- All Implemented Interfaces:
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
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.evolveum.midpoint.util.exception.CommonException
CommonException.Severity
-
-
Field Summary
-
Fields inherited from class com.evolveum.midpoint.util.exception.CommonException
localizedUserFriendlyMessage, userFriendlyMessage
-
-
Constructor Summary
Constructors Constructor Description ConcurrencyException()
ConcurrencyException(LocalizableMessage userFriendlyMessage)
ConcurrencyException(LocalizableMessage userFriendlyMessage, Throwable cause)
ConcurrencyException(String message)
ConcurrencyException(String message, Throwable cause)
ConcurrencyException(Throwable cause)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getErrorTypeMessage()
Returns a human-readable message that describes the type or class of errors that the exception represents.-
Methods inherited from class com.evolveum.midpoint.util.exception.CommonException
getLocalizedMessage, getLocalizedUserFriendlyMessage, getMessage, getSeverity, getTechnicalMessage, getUserFriendlyMessage, setLocalizedUserFriendlyMessage, setTechnicalMessage, toString
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
-
-
-
Constructor Detail
-
ConcurrencyException
public ConcurrencyException()
-
ConcurrencyException
public ConcurrencyException(String message)
-
ConcurrencyException
public ConcurrencyException(LocalizableMessage userFriendlyMessage)
-
ConcurrencyException
public ConcurrencyException(Throwable cause)
-
ConcurrencyException
public ConcurrencyException(LocalizableMessage userFriendlyMessage, Throwable cause)
-
-
Method Detail
-
getErrorTypeMessage
public String getErrorTypeMessage()
Description copied from class:CommonException
Returns a human-readable message that describes the type or class of errors that the exception represents. E.g. "Communication error", "Policy violation", etc. TODO: switch return value to a localized message- Specified by:
getErrorTypeMessage
in classCommonException
-
-