Trace: » r002 » r001 » r003

Feature Modification Request

Synopsis

Make Image_Graph use some error reporting mechanism, that being PEAR_Error, PEAR_ErrorStack 1), Exceptions 2) or some other generic mechanism.

Further more Image_Graph should report with meaningfull error messages.

Resolution

Image_Graph will make use of PEAR_Error. All methods will be capable of returning a PEAR_Error object upon failure, if method succeeds it will return the expected result or true.

Actual Implementation

Error handling / instantiation is handled by Image_Graph_Common::_error() which will raise the actual PEAR_Error and return it. All other methods that fails, must simply call $this→_error()3)

Key Data

Key Text
ID R003
Link http://pear.php.net/bugs/4785
Component Image_Graph all
Status Waiting
Progress In Progress
Responsible nosey
Date added 31-Aug-2005
Date completed
Release

1) there are probably better ways
2) need/want to be backwards compatible with PHP 4
3) maybe it should be static - or maybe not to provide context dependent errors?
 
fmr/r003.txt · Last modified: 2006/02/22 18:19