
Class UnprocessableEntityException
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.UnprocessableEntityException
- All Implemented Interfaces:
- Serializable
Represents an HTTP 422 Unprocessable Entity response, which means that a resource was rejected by the server because it "violated applicable FHIR profiles or server business rules".
 
 This exception will generally contain an IBaseOperationOutcome instance which details the failure.
 
- See Also:
- 
Field SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionUnprocessableEntityException(FhirContext theCtx, IBaseOperationOutcome theOperationOutcome) Constructor which accepts anIBaseOperationOutcomeresource which will be supplied in the responseUnprocessableEntityException(String theMessage) Constructor which accepts a String describing the issue.UnprocessableEntityException(String... theMessage) Constructor which accepts an array of Strings describing the issue.UnprocessableEntityException(String theMessage, Throwable theCause) Constructor which accepts a String describing the issue.UnprocessableEntityException(String theMessage, IBaseOperationOutcome theOperationOutcome) ConstructorUnprocessableEntityException(IBaseOperationOutcome theOperationOutcome) Deprecated.Use constructor with FhirContext argument
- 
Method SummaryMethods inherited from class ca.uhn.fhir.rest.server.exceptions.BaseServerResponseExceptionaddResponseHeader, getAdditionalMessages, getOperationOutcome, getResponseBody, getResponseHeaders, getResponseMimeType, getStatusCode, hasResponseHeaders, isErrorMessageTrusted, newInstance, setErrorMessageTrusted, setOperationOutcome, setResponseBody, setResponseMimeTypeMethods inherited from class java.lang.ThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
- 
Field Details- 
STATUS_CODE- See Also:
 
 
- 
- 
Constructor Details- 
UnprocessableEntityExceptionConstructor- Parameters:
- theMessage- The message to add to the status line
- theOperationOutcome- The- IBaseOperationOutcomeresource to return to the client
 
- 
UnprocessableEntityExceptionDeprecated.Use constructor with FhirContext argumentConstructor which accepts anIBaseOperationOutcomeresource which will be supplied in the response
- 
UnprocessableEntityExceptionConstructor which accepts anIBaseOperationOutcomeresource which will be supplied in the response
- 
UnprocessableEntityExceptionConstructor which accepts a String describing the issue. This string will be translated into anIBaseOperationOutcomeresource which will be supplied in the response.
- 
UnprocessableEntityExceptionConstructor which accepts a String describing the issue. This string will be translated into anIBaseOperationOutcomeresource which will be supplied in the response.
- 
UnprocessableEntityExceptionConstructor which accepts an array of Strings describing the issue. This strings will be translated into anIBaseOperationOutcomeresource which will be supplied in the response.
 
-