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

com.konduto.sdk.exceptions.KondutoHTTPException Maven / Gradle / Ivy

Go to download

Easily integrate with Konduto (https://konduto.com), a fraud prevention service.

There is a newer version: 2.17.4
Show newest version
package com.konduto.sdk.exceptions;

import com.google.gson.JsonObject;

/**
 *
 * This exception will be thrown whenever Konduto's API responds with an error HTTP status.
 *
 * @see com.konduto.sdk.Konduto#sendRequest
 */
public abstract class KondutoHTTPException extends KondutoException {
	private String message;

	/**
	 *
	 * @param message instance's message
	 * @param responseBody Konduto's API response
	 */
	protected KondutoHTTPException(String message, JsonObject responseBody){
		this.message = String.format("%s Response body: %s", message, responseBody.toString());
	}

	@Override
	public String getMessage() { return this.message; }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy