org.rosuda.REngine
Class REngineEvalException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.rosuda.REngine.REngineException
              extended by org.rosuda.REngine.REngineEvalException
All Implemented Interfaces:
java.io.Serializable

public class REngineEvalException
extends REngineException

Exception thrown when an error occurs during eval.

This class is a placeholder and should be extended when more information can be extracted from R (call stack, etc ... )

See Also:
Serialized Form

Field Summary
static int ERROR
          Value returned by the rniEval native method when an error occured during eval (stop, ...)
static int INVALID_INPUT
          Value returned by the rniEval native method when the input passed to eval is invalid
protected  int type
          Type of eval error
 
Fields inherited from class org.rosuda.REngine.REngineException
engine
 
Constructor Summary
REngineEvalException(REngine eng, java.lang.String message)
          Constructor using ERROR type
REngineEvalException(REngine eng, java.lang.String message, int type)
          Constructor
 
Method Summary
 int getType()
           
 
Methods inherited from class org.rosuda.REngine.REngineException
getEngine
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

INVALID_INPUT

public static final int INVALID_INPUT
Value returned by the rniEval native method when the input passed to eval is invalid

See Also:
Constant Field Values

ERROR

public static final int ERROR
Value returned by the rniEval native method when an error occured during eval (stop, ...)

See Also:
Constant Field Values

type

protected int type
Type of eval error

Constructor Detail

REngineEvalException

public REngineEvalException(REngine eng,
                            java.lang.String message,
                            int type)
Constructor

Parameters:
eng - associated REngine
message - error message
type - type of error (ERROR or INVALID_INPUT)

REngineEvalException

public REngineEvalException(REngine eng,
                            java.lang.String message)
Constructor using ERROR type

Parameters:
eng - associated REngine
message - error message
Method Detail

getType

public int getType()
Returns:
the type of error (ERROR or INVALID_INPUT)