
Class InternalErrorException
- 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.InternalErrorException
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
FhirPathExecutionException
public class InternalErrorException extends BaseServerResponseException
Represents an HTTP 500 Internal Error response. This status indicates that the server failed to successfully process the request. This generally means that the server is misbehaving or is misconfigured in some way, although a misbehaving server might also send this status code in the case of a bad request message (although it should not do this; an HTTP 4xx response is more appropriate in that situation).Note that a complete list of RESTful exceptions is available in the Package Summary.
-
-
Field Summary
Fields Modifier and Type Field Description static int
STATUS_CODE
-
Constructor Summary
Constructors Constructor Description InternalErrorException(String theMessage)
InternalErrorException(String theMessage, Throwable theCause)
InternalErrorException(String theMessage, IBaseOperationOutcome theOperationOutcome)
ConstructorInternalErrorException(Throwable theCause)
-
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
-
InternalErrorException
public InternalErrorException(String theMessage, IBaseOperationOutcome theOperationOutcome)
Constructor- Parameters:
theMessage
- The messagetheOperationOutcome
- The OperationOutcome resource to return to the client
-
InternalErrorException
public InternalErrorException(String theMessage)
-
InternalErrorException
public InternalErrorException(String theMessage, Throwable theCause)
-
InternalErrorException
public InternalErrorException(Throwable theCause)
-
-