Hi,


Hakki Dogusan <[EMAIL PROTECTED]> wrote:
Hi,

Steve Kieu yazmış:
In my lua binding of wxSQLite3 (done with Lunar),
I returned exception object as an additional result of functions.

//---------------------------------------------------------------------------
// push_exception
//
// NOTE: nil is pushed for SQLITE_OK
//
// Exception object is returned as last(additional) function result
// Usage ex:
// local rid,e = db:GetLastRowId()
// if e then -- an exception throwed (rid set to nil also)
// -- use exception object
// ec = e:GetErrorCode()
// es = e:GetMessage()
// end
//---------------------------------------------------------------------------

You may get my work from: http://www.dynaset.org/dogusanh
Thanks ; will try later. At the moment I use SendError() in wxLuaState to send lua error event and capture it in an event handler which seems to work fine as well. However wxSQLite3 (or maybe sqlite3) is so pedantic about errors, many sql errors it does not throw exception at all but crash. with the message Aborted . Some errors are reported though but kind of table not exists or field name not exist, it just crash the whole app. Not quite sure if your binding shows this symptom? I got it even use wxSQLite3 alone in c++ code as well.

Cheers,







S.KIEU


On Yahoo!7
360°: Your own space to share what you want with who you want!
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
Wxlua-users mailing list
Wxlua-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxlua-users

Reply via email to