Class InvalidRequestException
- 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.InvalidRequestException
-
- All Implemented Interfaces:
Serializable
public class InvalidRequestException extends BaseServerResponseException
Represents an HTTP 400 Bad Request response. This status indicates that the client's message was invalid (e.g. not a valid FHIR Resource per the specifications), as opposed to theUnprocessableEntityExceptionwhich indicates that data does not pass business rule validation on the server.Note that a complete list of RESTful exceptions is available in the Package Summary.
-
-
Field Summary
Fields Modifier and Type Field Description static intSTATUS_CODE
-
Constructor Summary
Constructors Constructor Description InvalidRequestException(String theMessage)ConstructorInvalidRequestException(String theMessage, Throwable theCause)ConstructorInvalidRequestException(String theMessage, IBaseOperationOutcome theOperationOutcome)ConstructorInvalidRequestException(Throwable theCause)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 Detail
-
STATUS_CODE
public static final int STATUS_CODE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
InvalidRequestException
public InvalidRequestException(String theMessage)
Constructor
-
InvalidRequestException
public InvalidRequestException(String theMessage, Throwable theCause)
Constructor
-
InvalidRequestException
public InvalidRequestException(Throwable theCause)
Constructor
-
InvalidRequestException
public InvalidRequestException(String theMessage, IBaseOperationOutcome theOperationOutcome)
Constructor- Parameters:
theMessage- The messagetheOperationOutcome- The OperationOutcome resource to return to the client
-
-