]> gerrit.simantics Code Review - simantics/r.git/blob - org.simantics.r.scl/src/org/rosuda/REngine/REngineException.java
(refs #6833) Test RExp inheritance in SCL
[simantics/r.git] / org.simantics.r.scl / src / org / rosuda / REngine / REngineException.java
1 // REngine - generic Java/R API
2 //
3 // Copyright (C) 2006 Simon Urbanek
4 // --- for licensing information see LICENSE file in the original JRclient distribution ---
5 //
6 //  RSrvException.java
7 //
8 //  Created by Simon Urbanek on Wed Jun 21 2006.
9 //
10 //  $Id$
11 //
12
13 package org.rosuda.REngine;
14
15 /** <code>REngineException</code> is a generic exception that can be thrown by methods invoked on an R engine. */
16 public class REngineException extends Exception {
17         /** engine associated with this exception */
18     protected REngine engine;
19
20         /** creates an R engine exception
21          @param engine engine associated with this exception
22          @param msg message describing the cause */
23     public REngineException(REngine engine, String msg) {
24         super(msg);
25         this.engine = engine;
26     }
27  
28         /** returns the engine associated with this exception
29          @return engine associated with this exception */
30         public REngine getEngine() { return engine; }
31 }