Class ConcurrentWriteException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
-
- org.gcube.informationsystem.resourceregistry.api.exceptions.ConcurrentWriteException
-
- All Implemented Interfaces:
Serializable
public class ConcurrentWriteException extends ResourceRegistryException
The Class ConcurrentWriteException. Thrown when a write loses the race with another write on overlapping graph elements: the other one committed, this one changed nothing. The request can be repeated as it is. Mapped to409 Conflictby the REST layer.- Author:
- Luca Frosini (ISTI - CNR)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ConcurrentWriteException(String message)Instantiates a new concurrent write exception.ConcurrentWriteException(String message, Throwable cause)Instantiates a new concurrent write exception.
-
Method Summary
-
Methods inherited from class org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
getResponseMetadata, withResponseMetadata
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
ConcurrentWriteException
public ConcurrentWriteException(String message)
Instantiates a new concurrent write exception.- Parameters:
message- the message
-
-