Package com.courier.api.core
Class CourierApiApiError
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.courier.api.core.CourierApiError
-
- com.courier.api.core.CourierApiApiError
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
CourierApiAlreadyExistsError,CourierApiBadRequestError,CourierApiConflictError,CourierApiMessageNotFoundError,CourierApiNotFoundError,CourierApiPaymentRequiredError
public class CourierApiApiError extends CourierApiError
This exception type will be thrown for any non-2XX API responses.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CourierApiApiError(java.lang.String message, int statusCode, java.lang.Object body)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectbody()intstatusCode()java.lang.StringtoString()
-