Exception
The exception class makes errors easier to parse with where and what members, as opposed to having a string with both.
For ease of use, constructing an exception automatically throws it.
plutotrynew exception("Not implemented")catch e thenprint(e) -- same as error("Not implemented")print(e.what)print(e.where)end
Output:
script.pluto:2: Not implementedNot implementedscript.pluto:2