Class RelationNotFoundException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.NotFoundException
org.gcube.informationsystem.resourceregistry.api.exceptions.instances.relations.RelationNotFoundException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ConsistsOfNotFoundException,IsParentOfNotFoundException,IsRelatedToNotFoundException
Base exception for "the requested relation does not exist" error conditions. The
server always throws the more specific leaf (
ConsistsOfNotFoundException or IsRelatedToNotFoundException);
this common superclass lets callers catch either uniformly, and is also thrown
directly by client-side error mapping as a generic fallback. Mapped to
404 Not Found by the REST layer.- Author:
- Luca Frosini (ISTI - CNR)
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionRelationNotFoundException(String message) Instantiates a new relation not found exception.RelationNotFoundException(String message, Throwable cause) Instantiates a new relation not found exception.Instantiates a new relation not found 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
-
RelationNotFoundException
Instantiates a new relation not found exception.- Parameters:
message- the message
-
RelationNotFoundException
Instantiates a new relation not found exception.- Parameters:
cause- the cause
-
RelationNotFoundException
Instantiates a new relation not found exception.- Parameters:
message- the messagecause- the cause
-