Navigation

Operators and Keywords

Function List:

C++ API

: [msg, msgid] = lasterr ()
: lasterr (msg)
: lasterr (msg, msgid)

Query or set the last error message.

When called without input arguments, return the last error message and message identifier.

With one argument, set the last error message to msg.

With two arguments, also set the last message identifier.

See also: lasterror, error, lastwarn.

Package: octave