Class ResourceGoneException
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.ResourceGoneException
- All Implemented Interfaces:
Serializable
Represents an HTTP 410 Resource Gone response, which geenerally
indicates that the resource has been deleted
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorDescriptionResourceGoneException
(Class<? extends IBaseResource> theClass, BaseIdentifierDt thePatientId) Deprecated.This constructor has a dependency on a specific model version and will be removed.ResourceGoneException
(Class<? extends IBaseResource> theClass, IIdType theResourceId) Constructor which creates an error message based on a given resource IDResourceGoneException
(String theMessage) ConstructorResourceGoneException
(String theMessage, IBaseOperationOutcome theOperationOutcome) ConstructorResourceGoneException
(IIdType theResourceId) Constructor which creates an error message based on a given resource ID -
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
-
ResourceGoneException
Constructor which creates an error message based on a given resource ID- Parameters:
theResourceId
- The ID of the resource that could not be found
-
ResourceGoneException
@Deprecated public ResourceGoneException(Class<? extends IBaseResource> theClass, BaseIdentifierDt thePatientId) Deprecated.This constructor has a dependency on a specific model version and will be removed. Deprecated in HAPI 1.6 - 2016-07-02 -
ResourceGoneException
Constructor which creates an error message based on a given resource ID- Parameters:
theClass
- The type of resource that could not be foundtheResourceId
- The ID of the resource that could not be found
-
ResourceGoneException
Constructor- Parameters:
theMessage
- The messagetheOperationOutcome
- The OperationOutcome resource to return to the client
-
ResourceGoneException
Constructor- Parameters:
theMessage
- The message
-
-
Method Details
-
getResourceId
-
setResourceId
-