Class FacetAlreadyPresentException
- 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.facet.FacetAlreadyPresentException
-
- All Implemented Interfaces:
Serializable
public class FacetAlreadyPresentException extends EntityAlreadyPresentException
Thrown when a Facet 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 FacetAlreadyPresentException(String message)Instantiates a new facet already present exception.FacetAlreadyPresentException(String message, Throwable cause)Instantiates a new facet already present exception.FacetAlreadyPresentException(Throwable cause)Instantiates a new facet 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
-
FacetAlreadyPresentException
public FacetAlreadyPresentException(String message)
Instantiates a new facet already present exception.- Parameters:
message- the message
-
FacetAlreadyPresentException
public FacetAlreadyPresentException(Throwable cause)
Instantiates a new facet already present exception.- Parameters:
cause- the cause
-
-