Elegant error reporting, possible?
From: steve (UseLinkToEmail_at_dbForumz.com)
Date: 03/14/05
- Next message: Greg: "more counter help, new problem"
- Previous message: steve: "Server not found"
- Next in thread: R. Rajesh Jeba Anbiah: "[FAQ] How to handle the script or database errors elegantly? (Was Re: Elegant error reporting, possible?)"
- Reply: R. Rajesh Jeba Anbiah: "[FAQ] How to handle the script or database errors elegantly? (Was Re: Elegant error reporting, possible?)"
- Reply: Kenneth Downs: "Re: Elegant error reporting, possible?"
- Reply: Chung Leong: "Re: Elegant error reporting, possible?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 13 Mar 2005 21:10:50 -0500
Hi,
In my script (phpnuke), whenever there is access to database, there is
this line of code:
message_die(GENERAL_ERROR, ’some error msg’, ’’, __LINE__, __FILE__,
$sql);
Is there a more elegant way of reporting line number besides putting
this line everywhere I access db. I want to just write a function,
which also globally knows about the current line number(?) and in case
of error reports it.
Is there any way to do that?
-- Posted using the http://www.dbforumz.com interface, at author's request Articles individually checked for conformance to usenet standards Topic URL: http://www.dbforumz.com/PHP-Elegant-error-reporting-ftopict206147.html Visit Topic URL to contact author (reg. req'd). Report abuse: http://www.dbforumz.com/eform.php?p=703259
- Next message: Greg: "more counter help, new problem"
- Previous message: steve: "Server not found"
- Next in thread: R. Rajesh Jeba Anbiah: "[FAQ] How to handle the script or database errors elegantly? (Was Re: Elegant error reporting, possible?)"
- Reply: R. Rajesh Jeba Anbiah: "[FAQ] How to handle the script or database errors elegantly? (Was Re: Elegant error reporting, possible?)"
- Reply: Kenneth Downs: "Re: Elegant error reporting, possible?"
- Reply: Chung Leong: "Re: Elegant error reporting, possible?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|