Class NotFoundException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.NotFoundException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ContextNotFoundException,EntityNotFoundException,QueryTemplateNotFoundException,RelationNotFoundException,SchemaNotFoundException
Base exception for "the requested element does not exist" error conditions across
every collection (Context, Type, Instance, Query Template) — specialized per
collection (e.g.
ContextNotFoundException),
and also thrown directly as a generic fallback. Mapped to 404 Not Found by
the REST layer.- Author:
- Luca Frosini (ISTI - CNR)
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionNotFoundException(String message) Instantiates a new not found exception.NotFoundException(String message, Throwable cause) Instantiates a new not found exception.NotFoundException(Throwable cause) Instantiates a new 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
-
NotFoundException
Instantiates a new not found exception.- Parameters:
message- the message
-
NotFoundException
Instantiates a new not found exception.- Parameters:
cause- the cause
-
NotFoundException
Instantiates a new not found exception.- Parameters:
message- the messagecause- the cause
-