Class RelationAvailableInAnotherContextException
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.relations.RelationAvailableInAnotherContextException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ConsistsOfAvailableInAnotherContextException,IsRelatedToAvailableInAnotherContextException
Base exception for "the requested relation exists, but only in a Context other
than the one scoping the request" error conditions. The server always throws the
more specific leaf (
ConsistsOfAvailableInAnotherContextException or IsRelatedToAvailableInAnotherContextException);
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 relation available in another context exception.RelationAvailableInAnotherContextException(String message, Throwable cause) Instantiates a new relation available in another context exception.Instantiates a new relation 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
-
RelationAvailableInAnotherContextException
Instantiates a new relation available in another context exception.- Parameters:
message- the message
-
RelationAvailableInAnotherContextException
Instantiates a new relation available in another context exception.- Parameters:
cause- the cause
-
RelationAvailableInAnotherContextException
Instantiates a new relation available in another context exception.- Parameters:
message- the messagecause- the cause
-