Package com.clinia.exceptions
Class CliniaApiException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.clinia.exceptions.CliniaRuntimeException
com.clinia.exceptions.CliniaApiException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
CliniaRequestException
Exception thrown in case of API failure such as 4XX, 5XX error.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCliniaApiException(String message, int httpErrorCode) CliniaApiException(String message, Throwable cause, int httpErrorCode) CliniaApiException(Throwable cause, int httpErrorCode) -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
CliniaApiException
-
CliniaApiException
-
CliniaApiException
-
-
Method Details
-
getStatusCode
public int getStatusCode() -
getMessage
- Overrides:
getMessagein classThrowable
-