Query or set the last error message structure.
When called without arguments, return a structure containing the last error message and other information related to this error. The elements of the structure are:
messageThe text of the last error message
identifierThe message identifier of this error message
stackA structure containing information on where the message occurred. This may be an empty structure if the information cannot be obtained. The fields of the structure are:
fileThe name of the file where the error occurred
nameThe name of function in which the error occurred
lineThe line number at which the error occurred
columnAn optional field with the column number at which the error occurred
The last error structure may be set by passing a scalar structure, err, as input. Any fields of err that match those above are set while any unspecified fields are initialized with default values.
If lasterror is called with the argument "reset", all
fields are set to their default values.
See also: lasterr, error, lastwarn.
Package: octave