1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
|
// REngine - generic Java/R API
//
// Copyright (C) 2006 Simon Urbanek
// --- for licensing information see LICENSE file in the original JRclient distribution ---
//
// RSrvException.java
//
// Created by Simon Urbanek on Wed Jun 21 2006.
//
// $Id$
//
package org.rosuda.REngine;
/** <code>REngineException</code> is a generic exception that can be thrown by methods invoked on an R engine. */
public class REngineException extends Exception {
/** engine associated with this exception */
protected REngine engine;
/** creates an R engine exception
@param engine engine associated with this exception
@param msg message describing the cause
@param cause original cause if this is a chained exception
*/
public REngineException(REngine engine, String msg, Throwable cause) {
super(msg, cause);
this.engine = engine;
}
/** creates an R engine exception
@param engine engine associated with this exception
@param msg message describing the cause
*/
public REngineException(REngine engine, String msg) {
super(msg);
this.engine = engine;
}
/** returns the engine associated with this exception
@return engine associated with this exception */
public REngine getEngine() { return engine; }
}
|