up previous next
error    --    throw an error message


Syntax
error(S: STRING): ERROR

Description
This function throws an error containing the given message. For backward compatibility the function may also be called using the name Error

Example
/**/ Define T(N)
/**/   If type(N) <> INT Then error("Argument must be an integer."); EndIf;
/**/   Return mod(N,5);
/**/ EndDefine;

/**/  T(7);
2

-- /**/ T(1/3); --> !!! ERROR !!! as expected:  "Argument must be an integer."

See Also