
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
public class ResourceGoneException extends BaseServerResponseException
Represents an HTTP 410 Resource Gone response, which geenerally indicates that the resource has been deleted- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static int
STATUS_CODE
-
Constructor Summary
Constructors Constructor Description ResourceGoneException(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IIdType
getResourceId()
void
setResourceId(IIdType theResourceId)
-
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 Detail
-
STATUS_CODE
public static final int STATUS_CODE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ResourceGoneException
public ResourceGoneException(IIdType theResourceId)
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
public ResourceGoneException(Class<? extends IBaseResource> theClass, IIdType theResourceId)
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
public ResourceGoneException(String theMessage, IBaseOperationOutcome theOperationOutcome)
Constructor- Parameters:
theMessage
- The messagetheOperationOutcome
- The OperationOutcome resource to return to the client
-
ResourceGoneException
public ResourceGoneException(String theMessage)
Constructor- Parameters:
theMessage
- The message
-
-
Method Detail
-
getResourceId
public IIdType getResourceId()
-
setResourceId
public void setResourceId(IIdType theResourceId)
-
-