/*
 * StoreException.java
 *
 * Created on January 15, 2002, 9:32 AM
 * Last modified  on  $Date$  by  $Author$
 */

/**
 *
 * @author  Juozas Baliuka
 * @version $Revision$
 */
public class StoreException extends java.lang.Exception {
    
    public Throwable detail;
    
    private Object key;
    
    /**
     * Creates new <code>StoreException</code> without detail message.
     */
    public StoreException() {
    }


    /**
     * Constructs an <code>StoreException</code> with the specified detail message.
     * @param msg the detail message.
     */
    public StoreException(String msg,Object key,Throwable detail) {
        super(msg);
        this.key = key;
        this.detail = detail;
    }
    
   /**
     * Constructs an <code>StoreException</code> with the specified detail message.
     * @param msg the detail message.
     */
    public StoreException(String msg) {
        super(msg);
    }
     
    /** getter for key property
     * @return  key
     */    
    public Object getKey(){
         return key;
     }
    
}


