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
public class ResourceNotFoundException extends BaseServerResponseException
Represents an HTTP 404 Resource Not Found response, which means that the request is pointing to a resource that does not exist.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static intSTATUS_CODE
-
Constructor Summary
Constructors Constructor Description ResourceNotFoundException(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 Detail
-
STATUS_CODE
public static final int STATUS_CODE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ResourceNotFoundException
public ResourceNotFoundException(Class<? extends IResource> theClass, IdDt theId)
-
ResourceNotFoundException
public ResourceNotFoundException(Class<? extends IResource> theClass, IdDt theId, IBaseOperationOutcome theOperationOutcome)
-
ResourceNotFoundException
public ResourceNotFoundException(Class<? extends IResource> theClass, IIdType theId)
-
ResourceNotFoundException
public ResourceNotFoundException(Class<? extends IResource> theClass, IIdType theId, IBaseOperationOutcome theOperationOutcome)
-
ResourceNotFoundException
public ResourceNotFoundException(String theMessage, IBaseOperationOutcome theOperationOutcome)
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
public ResourceNotFoundException(IdDt theId)
-
ResourceNotFoundException
public ResourceNotFoundException(IIdType theId)
-
ResourceNotFoundException
public ResourceNotFoundException(IIdType theId, IBaseOperationOutcome theOperationOutcome)
-
ResourceNotFoundException
public ResourceNotFoundException(String theMessage)
-
-