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

Re: Undocumented error code ?


Le 15/02/2026 à 02:10, Ian Roper a écrit :
The error code returned is -1 so I assume that this is undocumented. ?

The error text does not show up on the Gambas error code web page. (https://gambaswiki.org/wiki/error)


I use an error management module on-top of the Gambas error system but it is reporting the error code correctly. (I checked)


The error was generated when I forgot to close a bracket on a sqlite query statement.

The class is:  _databaseDriver_Sqlite3

The Error text is : Incomplete input

You will note in the attached image that the error back trace is reversed - this is just personal preference.

Regards,

Ian


'-1' is the error code used by components for errors that do not fit the standard error codes of the interpreter.

In that case only the error text tells what kind of error happened exactly.

And for the database component, the underlying database driver may return a database specific error code too in the 'Connection' object.

Regards,

--
Benoît Minisini.


References:
Undocumented error code ?Ian Roper <westozscribe@xxxxxxxxx>