Class ConflictingInsertionException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.xwiki.security.authorization.cache.ConflictingInsertionException
-
- All Implemented Interfaces:
Serializable
public class ConflictingInsertionException extends Exception
This exception is thrown if two or more parallel threads have attempted to load the cache with the same entry at the same time as a right was updated, so the resulting entries are different. When this happens, there must be a pending event waiting to be delivered, which will remove the offending entry from the cache. Thus, the appropriate action is to restart the attempt to load the cache when catching this, after the lock that blocks the event delivery has ben released and required.- Since:
- 4.0M2
- Version:
- $Id: 141c6477756363b64a196e5ea2b6834c738648e3 $
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ConflictingInsertionException()
Constructs a new exception withnull
as its detail message.ConflictingInsertionException(String message)
Constructs a new exception with the specified detail message.
-
Method Summary
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
ConflictingInsertionException
public ConflictingInsertionException()
Constructs a new exception withnull
as its detail message. The cause is not initialized, and may subsequently be initialized by a call toThrowable.initCause(java.lang.Throwable)
.
-
ConflictingInsertionException
public ConflictingInsertionException(String message)
Constructs a new exception with the specified detail message. The cause is not initialized, and may subsequently be initialized by a call toThrowable.initCause(java.lang.Throwable)
.- Parameters:
message
- the detail message. The detail message is saved for later retrieval by theThrowable.getMessage()
method.- Since:
- 12.5RC1, 11.10.6
-
-