
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 SummaryConstructorsConstructorDescriptionUnclassifiedServerFailureException(int theStatusCode, String theMessage) ConstructorUnclassifiedServerFailureException(int theStatusCode, String theMessage, IBaseOperationOutcome theOperationOutcome) Constructor
- 
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
- 
Constructor Details- 
UnclassifiedServerFailureExceptionConstructor- 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
 
- 
UnclassifiedServerFailureExceptionpublic 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 line
- theOperationOutcome- The OperationOutcome resource to return to the client
 
 
-