
carosellini.rJava.REngine.0.9-7.source-code.REngineEvalException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of REngine Show documentation
Show all versions of REngine Show documentation
Rserve is a TCP/IP server which allows other programs to use facilities of R (see www.r-project.org) from various languages without the need to initialize R or link against R library. Every connection has a separate workspace and working directory. Client-side implementations are available for popular languages such as C/C++, PHP and Java. Rserve supports remote connection, authentication and file transfer. Typical use is to integrate R backend for computation of statstical models, plots etc. in other applications.
The newest version!
package org.rosuda.REngine ;
/**
* 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 ... )
*
*/
public class REngineEvalException extends REngineException {
/**
* Value returned by the rniEval native method when the input passed to eval
* is invalid
*/
public static final int INVALID_INPUT = -1 ;
/**
* Value returned by the rniEval native method when an error occured during
* eval (stop, ...)
*/
public static final int ERROR = -2 ;
/**
* Type of eval error
*/
protected int type ;
/**
* Constructor
*
* @param eng associated REngine
* @param message error message
* @param type type of error (ERROR or INVALID_INPUT)
*/
public REngineEvalException( REngine eng, String message, int type ){
super( eng, message );
this.type = type ;
}
/**
* Constructor using ERROR type
*
* @param eng associated REngine
* @param message error message
*/
public REngineEvalException( REngine eng, String message){
this( eng, message, ERROR );
}
/**
* @return the type of error (ERROR or INVALID_INPUT)
*/
public int getType(){
return type ;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy