Class ResourceAlreadyPresentException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
-
- org.gcube.informationsystem.resourceregistry.api.exceptions.AlreadyPresentException
-
- org.gcube.informationsystem.resourceregistry.api.exceptions.instances.entities.EntityAlreadyPresentException
-
- org.gcube.informationsystem.resourceregistry.api.exceptions.instances.entities.resource.ResourceAlreadyPresentException
-
- All Implemented Interfaces:
Serializable
public class ResourceAlreadyPresentException extends EntityAlreadyPresentException
Thrown when a Resource with the given UUID already exists (e.g. reusing a UUID viaPUT/PATCHwhile enforcing structural idempotency). Mapped to409 Conflictby the REST layer.- Author:
- Luca Frosini (ISTI - CNR)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ResourceAlreadyPresentException(String message)Instantiates a new resource already present exception.ResourceAlreadyPresentException(String message, Throwable cause)Instantiates a new resource already present exception.ResourceAlreadyPresentException(Throwable cause)Instantiates a new resource already present 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
-
ResourceAlreadyPresentException
public ResourceAlreadyPresentException(String message)
Instantiates a new resource already present exception.- Parameters:
message- the message
-
ResourceAlreadyPresentException
public ResourceAlreadyPresentException(Throwable cause)
Instantiates a new resource already present exception.- Parameters:
cause- the cause
-
-