Gives the error message of a MASCARET instance
[error,message]=MASCARET_getError(id)
MASCARET instance number returned by the function MASCARET_create
(Output argument) Error code value : zero indicates that no errors occurred
Character string indicating the error
Gives the error message of a specific MASCARET instance
toolbox_dir=getenv("toolbox_dir"); c = filesep(); // creation of the MASCARET model [err, id] = MASCARET_create(); assert_checktrue(id>0); // read data from files path_xml = "file://"+toolbox_dir+c+"demos"+c+"Help"+c+"demo1"+c+"demo1.xcas"; TabNomFichier = [strsubst(path_xml,'\','/'), .. toolbox_dir+c+"demos"+c+"Help"+c+"demo1"+c+"demo1.geo", .. toolbox_dir+c+"demos"+c+"Help"+c+"demo1"+c+"demo1_0.loi", .. toolbox_dir+c+"demos"+c+"Help"+c+"demo1"+c+"demo1_1.loi", .. toolbox_dir+c+"demos"+c+"Help"+c+"demo1"+c+"demo1.lis", .. toolbox_dir+c+"demos"+c+"Help"+c+"demo1"+c+"demo1.opt"]; TypeNomFichier = ["xxcas","geo","loi","loi","listing","res"]; // "xxcas" is not a valid extension! impression = 0; err = MASCARET_importModel(id,TabNomFichier,TypeNomFichier,impression); // assert_checkequal(err,0); // get the error message if err then [err,message] = MASCARET_getError(id) end // model deletion err = MASCARET_delete(id); assert_checkequal(err,0); | ![]() | ![]() |