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

com.gemstone.org.jgroups.persistence.CannotRetrieveException Maven / Gradle / Ivy

There is a newer version: 2.0-BETA
Show newest version
/** Notice of modification as required by the LGPL
 *  This file was modified by Gemstone Systems Inc. on
 *  $Date$
 **/
package  com.gemstone.org.jgroups.persistence;

/**
 * @author Mandar Shinde
 * This exception inherits the Exception class and is used in
 * cases where the Persistence Storage cannot retrieve a pair
 * from its storage mechanism (leading to failure of mechanism)
 */

public class CannotRetrieveException extends Exception
{
    private static final long serialVersionUID = -3825072530525191050L;

    /**
     * @param t
     * @param reason implementor-specified runtime reason
     */
    public CannotRetrieveException(Throwable t, String reason)
    {
	this.t = t;
	this.reason = reason;
    }

    /**
     * @return String;
     */
    @Override // GemStoneAddition
    public String toString()
    {
	String tmp = "Exception " + t.toString() + " was thrown due to " + reason;
	return tmp;
    }

    /**
     * members are made available so that the top level user can dump
     * appropriate members on to his stack trace
     */
    private Throwable t = null;
    private String reason = null;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy