errorΒΆ
type errorAn error. Values of this type are not accessible from Minilang code since they are caught by the runtime. Each error contains an error value which contains the details of the error.
fun error(Type: string, Message: string): errorCreates an error exception with type
Typeand messageMessage. Since this creates an exception, it will trigger the current exception handler.type error::valueAn error value. Error values contain the details of an error but are not themselves errors (since errors are caught by the runtime).
meth (Error: error::value):message: stringReturns the message of
Error.meth (Error: error::value):raise: errorReturns
Erroras an error (i.e. rethrows the error).meth (Error: error::value):trace: listReturns the stack trace of
Erroras a list of tuples.meth (Error: error::value):type: stringReturns the type of
Error.fun raise(Type: string, Value: any): errorCreates a general exception with type
Typeand valueValue. Since this creates an exception, it will trigger the current exception handler.