Skip to content

error

builtin · libnexusinterp/corefcn/error-proprietary.cc

: error (template, …)
: error (id, template, …)
: error (errstruct)
: error (ME)

Raise an exception.

With one argument the text is the message and is used literally. With more arguments the first is a printf template (preceded by an identifier of the form ‘component:mnemonic’ if it contains a colon and no white space). A structure with fields message and identifier (and optionally stack), or an MException object, is raised as it stands. An empty message does nothing. A message that ends in a newline is reported without the list of calling functions.