Class ResourceVersionConflictException
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.ResourceVersionConflictException
- All Implemented Interfaces:
Serializable
Represents an HTTP 409 Conflict response. This exception should be
thrown in methods which accept a version (e.g.
Update
, Delete
)
when the operation fails because of a version conflict as specified in the FHIR specification.- See Also:
-
Field Summary
-
Constructor Summary
ConstructorDescriptionConstructorResourceVersionConflictException
(String theMessage, Throwable theCause, IBaseOperationOutcome theOperationOutcome) ConstructorResourceVersionConflictException
(String theMessage, IBaseOperationOutcome theOperationOutcome) Constructor -
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
-
ResourceVersionConflictException
Constructor -
ResourceVersionConflictException
public ResourceVersionConflictException(String theMessage, IBaseOperationOutcome theOperationOutcome) Constructor- Parameters:
theMessage
- The messagetheOperationOutcome
- The OperationOutcome resource to return to the client
-
ResourceVersionConflictException
public ResourceVersionConflictException(String theMessage, Throwable theCause, IBaseOperationOutcome theOperationOutcome) Constructor- Parameters:
theMessage
- The messagetheOperationOutcome
- The OperationOutcome resource to return to the client
-