![]() |
|
Navigation |
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.
Remedies:
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 ![]() |