View Single Post
Old 11-13-2012, 12:58 AM   PM User | #3
doubledee
Regular Coder

 
doubledee's Avatar
 
Join Date: Mar 2011
Location: Arizona
Posts: 640
Thanks: 20
Thanked 0 Times in 0 Posts
doubledee has a little shameless behaviour in the past
Quote:
Originally Posted by Fou-Lu View Post
Too much text to read.
What is "too much text to read"?

My original post?!


Quote:
Originally Posted by Fou-Lu View Post
Too much text to read.
Why not make use of set_error_handler, and issue trigger_error instead? This issues its own stack, so you can easily track down the file, line, context, etc entirely from the error handler itself. Easy to convert and rethrow as an errorException when it comes time to convert to OO.[/QUOTE]

Because most of the Error-Handling code I have - as shown in the OP - are "logical" errors and not run-time errors, so set_error_handler wouldn't help.


Debbie
doubledee is offline   Reply With Quote