Maple Professionel
Maple Académique
Maple Edition Étudiant
Maple Personal Edition
Maple Player
Maple Player for iPad
MapleSim Professionel
MapleSim Académique
Maple T.A. - Suite d'examens de classement
Maple T.A. MAA Placement Test Suite
Möbius - Didacticiels de mathématiques en ligne
Machine Design / Industrial Automation
Aéronautique
Ingénierie des véhicules
Robotics
Energie
System Simulation and Analysis
Model development for HIL
Modélisation du procédé pour la conception de systèmes de contrôle
Robotics/Motion Control/Mechatronics
Other Application Areas
Enseignement des mathématiques
Enseignement de l’ingénierie
Enseignement secondaire et supérieur (CPGE, BTS)
Tests et évaluations
Etudiants
Modélisation financière
Recherche opérationnelle
Calcul haute performance
Physique
Webinaires en direct
Webinaires enregistrés
Agenda des évènements
Forum MaplePrimes
Blog Maplesoft
Membres Maplesoft
Maple Ambassador Program
MapleCloud
Livres blancs techniques
Bulletin électronique
Livres Maple
Math Matters
Portail des applications
Galerie de modèles MapleSim
Cas d'Etudes Utilisateur
Exploring Engineering Fundamentals
Concepts d’enseignement avec Maple
Centre d’accueil utilisateur Maplesoft
Centre de ressources pour enseignants
Centre d’assistance aux étudiants
errorCallBack - handle error output in OpenMaple
Calling Sequence
errorCallBack(data, offset, msg)
Parameters
data
-
user_data pointer passed to StartMaple (void*)
offset
integer
msg
error message (char*)
Description
This OpenMaple function is part of the MCallBackVector structure passed as an argument to StartMaple.
The errorCallBack function is called when an error occurs during parsing or processing.
The prototype for the function you can assign to the entry in the MCallBackVector must look like the following.
void M_DECL errorCallBack( void *data, M_INT offset, char *msg );
The offset parameter indicates the location of a parsing error. If offset >= 0, the error was detected at the specified offset in the string passed to EvalMapleStatement. If offset < 0, the error is not a parsing error; it is a computation error.
The msg parameter contains the text of the error message.
The data parameter contains the same data as passed to StartMaple in the user_data parameter.
If an errorCallBack function is not specified, error messages are sent to the textCallBack function, with the MAPLE_TEXT_ERROR tag.
Source code for an errorCallBack example is provided in the samples/OpenMaple/HelpExamples subdirectory of your Maple installation.
See Also
callBackCallBack, CustomWrapper, OpenMaple, OpenMaple/C/API, OpenMaple/C/Examples, queryInterrupt, readLineCallBack, redirectCallBack, StartMaple, statusCallBack, streamCallBack, textCallBack
Download Help Document