There's no way to do it directly, but it would be easy enough to set up an array (or hash if the range of the constants is sparse) that maps the numeric value to the textual equivalent.
You could use the constant names as the text, but you might be better to expand the abbreviated information into a clearer error text.
In reply to Re: The name of a constant
by BrowserUk
in thread The name of a constant
by Kjetil
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |