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

com.lacunasoftware.signer.javaclient.exceptions.RestDecodeException Maven / Gradle / Ivy

package com.lacunasoftware.signer.javaclient.exceptions;

/**
 * Thrown to indicate that a REST request was successful but an error occurred while decoding its
 * response.
 */
public class RestDecodeException extends RestException {

	/**
	 *
	 */
	private static final long serialVersionUID = 1L;

	public RestDecodeException(String verb, String url, Exception innerException) {
		super(formatExceptionMessage(verb, url), verb, url, innerException);
	}

	private static String formatExceptionMessage(String verb, String url) {
		return String.format("REST action %s %s returned success but an error occurred decoding the response (see inner exception for details)", verb, url);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy