Package com.usebutton.merchant.exception
Class HttpStatusException
-
- All Implemented Interfaces:
-
java.io.Serializable
public class HttpStatusException extends ButtonNetworkException
Network error with status code encountered when communicating with the Button API
-
-
Constructor Summary
Constructors Constructor Description HttpStatusException(String message, int statusCode)
-
Method Summary
Modifier and Type Method Description booleanwasBadRequest()booleanwasUnauthorized()booleanwasRateLimited()booleanwasServerError()-
-
Constructor Detail
-
HttpStatusException
HttpStatusException(String message, int statusCode)
-
-
Method Detail
-
wasBadRequest
boolean wasBadRequest()
-
wasUnauthorized
boolean wasUnauthorized()
-
wasRateLimited
boolean wasRateLimited()
-
wasServerError
boolean wasServerError()
-
-
-
-