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
public class NotFoundException extends ResourceRegistryException
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 to404 Not Foundby the REST layer.- Author:
- Luca Frosini (ISTI - CNR)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NotFoundException(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, withResponseMetadata
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-