raiseStaticError

raiseStaticError (message --)

Inputs

Outputs

This builtin takes one known Text input and has no outputs. After the message is validated, compilation fails unconditionally.

The reported error text is the supplied message.

Behavior

Example

test.mpl

{} 0 {} [
  "custom message" raiseStaticError
  0
] "main" exportFunction

Expected Compilation Error

test.mpl(2,20): «raiseStaticError», custom message
test.mpl(4,10): «exportFunction», Called from here

See also