Class EntityAvailableInAnotherContextException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.instances.AvailableInAnotherContextException
org.gcube.informationsystem.resourceregistry.api.exceptions.instances.entities.EntityAvailableInAnotherContextException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
FacetAvailableInAnotherContextException,ResourceAvailableInAnotherContextException
Base exception for "the requested Resource or Facet exists, but only in a Context
other than the one scoping the request" error conditions. The server always throws
the more specific leaf (
ResourceAvailableInAnotherContextException or FacetAvailableInAnotherContextException);
this common superclass lets callers catch either uniformly. Mapped to
403 Forbidden by the REST layer.- Author:
- Luca Frosini (ISTI - CNR)
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionInstantiates a new entity available in another context exception.EntityAvailableInAnotherContextException(String message, Throwable cause) Instantiates a new entity available in another context exception.Instantiates a new entity available in another context exception. -
Method Summary
Methods inherited from class org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
getResponseMetadata, withResponseMetadataMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
EntityAvailableInAnotherContextException
Instantiates a new entity available in another context exception.- Parameters:
message- the message
-
EntityAvailableInAnotherContextException
Instantiates a new entity available in another context exception.- Parameters:
cause- the cause
-
EntityAvailableInAnotherContextException
Instantiates a new entity available in another context exception.- Parameters:
message- the messagecause- the cause
-