For questions on interpreting existing error messages that you have encountered, as well as writing and managing messages, assertions and checks for your own functions.

learn more… | top users | synonyms

2
votes
1answer
633 views

A combination of Set::setraw and Set::shape errors

Please consider the following toy code: ...
8
votes
2answers
669 views

Table function with Part[] call misbehaving, but only after initial startup of Mathematica

I am getting errors like: Part::partd: Part specification standardBasis[[1]] is longer than depth of object. with the following Manipulate expression: ...
9
votes
3answers
2k views

General::ivar is not a valid variable when plotting - what actually causes this and how to avoid it?

I was just evaluating a couple of expressions and started to get errors like this: ...
24
votes
1answer
408 views

which is better, using Assert[] or manual checks on arguments and other computations?

I never used Asserts in Mathematica, but trying to see what advantage they have over just argument check and additional definitions of the function to capture unwanted input. For example, which one ...
43
votes
2answers
1k views

What are the best practices / most common / idiomatic ways to report errors in Mathematica?

In particular, what are the best ways to report errors about incorrect arguments to a function? Checking for the correct arguments is relatively easy using patterns, but how to report an informative ...