Class MpesaApiException
java.lang.Object
java.lang.Throwable
java.lang.Exception
io.github.openpaydev.mpesa.core.exceptions.MpesaException
io.github.openpaydev.mpesa.core.exceptions.MpesaApiException
- All Implemented Interfaces:
Serializable
Thrown when the M-Pesa API returns a non-successful HTTP response (e.g., 4xx or 5xx). This
exception provides access to the HTTP status code and the raw response body, which is crucial for
debugging API-level errors like malformed requests.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
MpesaApiException
-
-
Method Details
-
getStatusCode
public int getStatusCode() -
getResponseBody
-