Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

How can I write my Mathematica code so that it resumes at a specific place if any Message is displayed during the execution of an expression? For example, in Visual Basic for Applications there's on error resume next, or on error goto. I'd like also to be able to log the issue in a list so I can reproduce and correct the problem later.

share|improve this question
You've looked at Check, Catch,Throw and CheckAbort ? [ Whispers: oh and there is also Goto ]. –  image_doctor Nov 14 '12 at 17:35
Check this too –  Rojo Nov 14 '12 at 17:36
Check is what are I need, and the other possibilities are interesting also, thanks. –  faysou Nov 14 '12 at 21:14
@image_doctor as your comment answers the question can you please write a proper answer ? –  faysou Feb 1 '13 at 11:30
@image_doctor, maybe you can answer the question now? :) –  J. M. Apr 28 '13 at 16:24

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.