Subject RE: [firebird-php] Firebird exception handling
Author Alan McDonald
quite a few of us here use an abstraction layer. ezSQL and adoDB both return
exceptions to the calling functions. not sure if this is what you mean
Alan
-----Original Message-----
From: almad_cz [mailto:almad_cz@...]
Sent: Tuesday, September 07, 2004 12:19 AM
To: firebird-php@yahoogroups.com
Subject: [firebird-php] Firebird exception handling


Hello,

I'm building a project with firebird 1.5 and testing it also with
apache 2 and php 5.

PHP application will be just one from many interfaces, some other
client-side application is also planned, so i wan't to have some
exception handling in firebird, not something as returning exception
number which will be stored externally.

F.e., I call an exception when user calls an exception from procedure
AUTHORIZE_USER and fill bad username or password.

Now, when I try to make some exception handling in php, i don't knew
how to do it.
Exception is written as an "non-eye-candy" php _warning_ and not when
calling ibase_query, but ibase_fetch_*:

Warning: ibase_fetch_assoc() [function.ibase-fetch-assoc]: exception 1
Unauthorized access! in /var/.../globals.php on line 49

Now, what I would like is *some* way to fetch an exception number
and/or text some variable/array, so I will be free to modify it.

Or, at least, i want to exception occured as error, not warning...

I tried to use google, but nothing found...

Any suggestions, please?


Thank You,

--
Lukas "Almad" Linhart



Yahoo! Groups Sponsor
ADVERTISEMENT





----------------------------------------------------------------------------
--
Yahoo! Groups Links

a.. To visit your group on the web, go to:
http://groups.yahoo.com/group/firebird-php/

b.. To unsubscribe from this group, send an email to:
firebird-php-unsubscribe@yahoogroups.com

c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



[Non-text portions of this message have been removed]