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

com.konduto.sdk.exceptions.KondutoUnexpectedAPIResponseException 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 is thrown whenever Konduto's API responds something we cannot handle.
 * Please contact our support team if this ever happens.
 */
public class KondutoUnexpectedAPIResponseException extends KondutoException {

	private static final long serialVersionUID = 7090880437649169406L;
	private JsonObject responseBody;

	public KondutoUnexpectedAPIResponseException(JsonObject responseBody) {
		this.responseBody = responseBody;
	}

	@Override
	public String getMessage() {
		return String.format("Unexpected API response: %s", this.responseBody);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy