1
.TH lasterror 1 "April 2000" "Scilab Group" "Scilab Function"
4
lasterror - get last recorded error message
8
[str,n]=lasterror([opt])
13
: vector of character strings or an empty matrix. The last
14
recorded error message.
17
: integer, 0 or the last recorded error number.
20
: boolean, if %t recorded message is cleared. Default is %t.
22
Each time an error occur, the Scilab error handler records it in
23
internal tables (only the last one is retained). The \fVlasterror\fR
24
function allows to get the message and the error number out of these
27
This function is useful while using \fVerrcatch\fR or \fVexecstr\fR.
29
The recorded error message may be retained for a further call to
30
\fVlasterror\fR using \fVlasterror(%f)\fR.
33
ierr=execstr('a=zzzzzzz','errcatch')
34
if ierr>0 then disp(lasterror()),end
37
errcatch, execstr, error, errclear