File: REngineException.java

package info (click to toggle)
rjava 1.0-14-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,188 kB
  • sloc: java: 13,223; ansic: 5,503; sh: 3,776; xml: 325; makefile: 250; perl: 33
file content (42 lines) | stat: -rw-r--r-- 1,280 bytes parent folder | download | duplicates (9)
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; }
}