Class MidtransError

    • 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 -
      • MidtransError

        public MidtransError​(String message,
                             Integer statusCode,
                             String responseBody,
                             okhttp3.Response response,
                             Throwable e)
        Constructs a Midtrans exception with the specified details.
        Parameters:
        message -
        statusCode -
        responseBody -
        response -
        e -