Synopsis A function or operation is applied to an illegal argument value.
Function data RunTimeException = IllegalArgument() | IllegalArgument(value v) | IllegalArgument(value v, str message);
Usage import Exception;
Description This error is generated when a function or operation is applied to a value that it does not expect.

  • Check the value or values to which you apply the function or operation.
Examples Changing the month of a Rascal:DateTime to an illegal month:
rascal>NOW = $2013-01-13T22:16:51.740+01:00;

rascal>NOW.month = 13;
|stdin:///|(0,3,<1,0>,<1,3>): Uninitialized variable: month
Is this page unclear, or have you spotted an error? Please add a comment below and help us to improve it. For all other questions and remarks, visit