octave-maintainers
[Top][All Lists]
Advanced

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

error function


From: John W. Eaton
Subject: error function
Date: Mon, 14 May 2007 14:46:25 -0400

On 14-May-2007, Shai Ayal wrote:

| In the process of adding new graphics property types (sorry it's
| taking soooo long), I came upon the error function. Can someone
| explain it to me?
| does it throw an exception?

No.

| what does it do except setting the error_state flag?

It prints the message, sets error_state, and saves information about
the error for lasterror/lasterr/rethrow.

| when will the error message be printed?

Immediately.

| Is it the "recommended" way to handle errors of the sort of
| incompatible assignments -- i.e. trying to assing a number to a string
| type?

Can you give an example of what you are trying to do?

jwe


reply via email to

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