Package com.midtrans.httpclient.error
Class MidtransError
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.midtrans.httpclient.error.MidtransError
-
- All Implemented Interfaces:
Serializable
public class MidtransError extends Exception
MidtransError class to catch error messages- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MidtransError(String message)Constructs a Midtrans exception with the messageMidtransError(String message, Integer statusCode, String data, okhttp3.Response response)Constructs a Midtrans exception with the specified details.MidtransError(String message, Integer statusCode, String responseBody, okhttp3.Response response, Throwable e)Constructs a Midtrans exception with the specified details.MidtransError(String message, Throwable cause)Constructs a Midtrans exception with message and specified causeMidtransError(Throwable cause)Constructs a Midtrans exception with the specified cause
-
Method Summary
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
MidtransError
public MidtransError(String message)
Constructs a Midtrans exception with the message- Parameters:
message-
-
MidtransError
public MidtransError(Throwable cause)
Constructs a Midtrans exception with the specified cause- Parameters:
cause-
-
MidtransError
public MidtransError(String message, Throwable cause)
Constructs a Midtrans exception with message and specified cause- Parameters:
message-cause-
-
MidtransError
public MidtransError(String message, Integer statusCode, String data, okhttp3.Response response)
Constructs a Midtrans exception with the specified details.- Parameters:
message-statusCode-data-response-
-
-