Class ResourceNotFoundException
- 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.entities.EntityNotFoundException
-
- org.gcube.informationsystem.resourceregistry.api.exceptions.instances.entities.resource.ResourceNotFoundException
-
- All Implemented Interfaces:
Serializable
public class ResourceNotFoundException extends EntityNotFoundException
Thrown when the Resource identified by the given UUID does not exist, or is not visible to the caller. Mapped to404 Not Foundby the REST layer.- Author:
- Luca Frosini (ISTI - CNR)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ResourceNotFoundException(String message)Instantiates a new resource not found exception.ResourceNotFoundException(String message, Throwable cause)Instantiates a new resource not found exception.ResourceNotFoundException(Throwable cause)Instantiates a new resource 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
-
-
-
-
Constructor Detail
-
ResourceNotFoundException
public ResourceNotFoundException(String message)
Instantiates a new resource not found exception.- Parameters:
message- the message
-
ResourceNotFoundException
public ResourceNotFoundException(Throwable cause)
Instantiates a new resource not found exception.- Parameters:
cause- the cause
-
-