1 package org.rosuda.REngine ;
4 * Exception thrown when an error occurs during eval.
7 * This class is a placeholder and should be extended when more information
8 * can be extracted from R (call stack, etc ... )
11 public class REngineEvalException extends REngineException {
14 * Value returned by the rniEval native method when the input passed to eval
17 public static final int INVALID_INPUT = -1 ;
20 * Value returned by the rniEval native method when an error occured during
23 public static final int ERROR = -2 ;
33 * @param eng associated REngine
34 * @param message error message
35 * @param type type of error (ERROR or INVALID_INPUT)
37 public REngineEvalException( REngine eng, String message, int type ){
38 super( eng, message );
43 * Constructor using ERROR type
45 * @param eng associated REngine
46 * @param message error message
48 public REngineEvalException( REngine eng, String message){
49 this( eng, message, ERROR );
53 * @return the type of error (ERROR or INVALID_INPUT)