Class UnclassifiedServerFailureException
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.UnclassifiedServerFailureException
- All Implemented Interfaces:
Serializable
Exception for use when a response is received or being sent that does not correspond to any other exception type. An HTTP status code must be provided, and will be provided to the caller in the
case of a server implementation.
- See Also:
-
Constructor Summary
ConstructorDescriptionUnclassifiedServerFailureException
(int theStatusCode, String theMessage) ConstructorUnclassifiedServerFailureException
(int theStatusCode, 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
-
Constructor Details
-
UnclassifiedServerFailureException
Constructor- Parameters:
theStatusCode
- The HTTP status code to return (e.g. 404 if you wish to return an HTTP 404 status)theMessage
- The message to add to the status line
-
UnclassifiedServerFailureException
public UnclassifiedServerFailureException(int theStatusCode, String theMessage, IBaseOperationOutcome theOperationOutcome) Constructor- Parameters:
theStatusCode
- The HTTP status code to return (e.g. 404 if you wish to return an HTTP 404 status)theMessage
- The message to add to the status linetheOperationOutcome
- The OperationOutcome resource to return to the client
-