octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #48194] lastwarn and lasterr produce wrong out


From: Rik
Subject: [Octave-bug-tracker] [bug #48194] lastwarn and lasterr produce wrong outputs
Date: Fri, 10 Jun 2016 16:23:58 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0

Follow-up Comment #3, bug #48194 (project octave):

Actually, Octave does document this in the manual, but it is pretty hidden. 
After the docstring for lasterr there is this


It is also possible to assign an identification string to an error. If an
error has such
an ID the user can catch this error as will be shown in the next example. To
assign
an ID to an error, simply call error with two string arguments, where the
first is the
identification string, and the second is the actual error. Note that error IDs
are in the format
"NAMESPACE:ERROR-NAME". The namespace "Octave" is used for Octave’s own
errors. Any
other string is available as a namespace for user’s own errors.



    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?48194>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]