Class ResourceNotFoundException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
ca.uhn.fhir.rest.server.exceptions.BaseServerResponseException
ca.uhn.fhir.rest.server.exceptions.ResourceNotFoundException
- All Implemented Interfaces:
Serializable
Represents an HTTP 404 Resource Not Found response, which means that the request is pointing to a resource that does not exist.
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorDescriptionResourceNotFoundException
(IdDt theId) ResourceNotFoundException
(Class<? extends IResource> theClass, BaseIdentifierDt theId) Deprecated.This doesn't make sense, since an identifier is not a resource ID and shouldn't generate a 404 if it isn't found - Should be removedResourceNotFoundException
(Class<? extends IResource> theClass, IdDt theId) ResourceNotFoundException
(Class<? extends IResource> theClass, IdDt theId, IBaseOperationOutcome theOperationOutcome) ResourceNotFoundException
(Class<? extends IResource> theClass, IIdType theId) ResourceNotFoundException
(Class<? extends IResource> theClass, IIdType theId, IBaseOperationOutcome theOperationOutcome) ResourceNotFoundException
(String theMessage) ResourceNotFoundException
(String theMessage, IBaseOperationOutcome theOperationOutcome) ConstructorResourceNotFoundException
(IIdType theId) ResourceNotFoundException
(IIdType theId, IBaseOperationOutcome theOperationOutcome) -
Method Summary
Methods inherited from class ca.uhn.fhir.rest.server.exceptions.BaseServerResponseException
addResponseHeader, getAdditionalMessages, getOperationOutcome, getResponseBody, getResponseHeaders, getResponseMimeType, getStatusCode, hasResponseHeaders, isErrorMessageTrusted, newInstance, setErrorMessageTrusted, setOperationOutcome, setResponseBody, setResponseMimeType
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
STATUS_CODE
- See Also:
-
-
Constructor Details
-
ResourceNotFoundException
-
ResourceNotFoundException
public ResourceNotFoundException(Class<? extends IResource> theClass, IdDt theId, IBaseOperationOutcome theOperationOutcome) -
ResourceNotFoundException
-
ResourceNotFoundException
public ResourceNotFoundException(Class<? extends IResource> theClass, IIdType theId, IBaseOperationOutcome theOperationOutcome) -
ResourceNotFoundException
Constructor- Parameters:
theMessage
- The messagetheOperationOutcome
- The OperationOutcome resource to return to the client
-
ResourceNotFoundException
@Deprecated public ResourceNotFoundException(Class<? extends IResource> theClass, BaseIdentifierDt theId) Deprecated.This doesn't make sense, since an identifier is not a resource ID and shouldn't generate a 404 if it isn't found - Should be removed -
ResourceNotFoundException
-
ResourceNotFoundException
-
ResourceNotFoundException
-
ResourceNotFoundException
-