All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.bitpay.sdk.exceptions.BitPayApiException Maven / Gradle / Ivy

Go to download

Full implementation of the BitPay Payment Gateway. This library implements BitPay's Cryptographically Secure RESTful API.

There is a newer version: 10.1.1
Show newest version
/*
 * Copyright (c) 2019 BitPay.
 * All rights reserved.
 */

package com.bitpay.sdk.exceptions;

public class BitPayApiException extends BitPayException {

    private static final long serialVersionUID = 8211452784073681895L;

    private final String code;

    public BitPayApiException(String message, String code) {
        super(message);
        this.code = code;
    }

    /**
     * 

An error code consists of 6 digits.

*

The first two digits of an error code represent the HTTP method that was used to call it.

*

The next two digits refer to the resource that was impacted.

*

The last two digits refer to the specific error.

*

eg. 010103 - Missing parameters for Invoice POST request.

* * @return String */ public String getCode() { return this.code; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy