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

com.balajeetm.mystique.util.json.error.ConvertorException Maven / Gradle / Ivy

/*
 * Copyright (c) Balajee TM 2016.
 * All rights reserved.
 * License -  @see 
 */

/*
 * Created on 25 Aug, 2016 by balajeetm
 * http://www.balajeetm.com
 */
package com.balajeetm.mystique.util.json.error;

/**
 * The Class ConvertorException.
 *
 * @author balajeetm
 */
public class ConvertorException extends RuntimeException {

	/** The Constant serialVersionUID. */
	private static final long serialVersionUID = 1L;

	/**
	 * Instantiates a new convertor exception.
	 * 
	 * @param cause the throwable cause of the exception
	 */
	public ConvertorException(Throwable cause) {
		super(String.format("Error during conversion : %s", cause.getMessage()));
		this.initCause(cause);
	}

	/**
	 * Instantiates a new convertor exception.
	 * 
	 * @param message the error message
	 */
	public ConvertorException(String message) {
		super(String.format("Error during conversion : %s", message));
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy