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

com.casper.sdk.exception.CasperClientException Maven / Gradle / Ivy

Go to download

SDK to streamline the 3rd party Java client integration processes. Such 3rd parties include exchanges & app developers.

The newest version!
package com.casper.sdk.exception;

/**
 * Thrown on casper RPC service error
 *
 * @author Alexandre Carvalho
 * @author Andre Bertolace
 * @since 0.0.1
 */
public class CasperClientException extends RuntimeException {

    public CasperClientException(final CasperClientErrorData error) {
        super(String.format("%s (code: %d)%s", error.getMessage(), error.getCode(), error.getData() != null ? " " + error.getData() : ""));
    }

    public CasperClientException(final String message, final Throwable cause) {
        super(message, cause);
    }

    public CasperClientException(final String message) {
        super(message);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy