Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.0.2

Bug #9392 No exception codes given
Submitted: 2006-11-20 07:07 UTC
From: cweiske Assigned: itrebal
Status: Closed Package: Net_MPD (version 0.2.0dev)
PHP Version: Irrelevant OS:
Roadmaps: (Not assigned)    
Subscription  


 [2006-11-20 07:07 UTC] cweiske (Christian Weiske)
Description: ------------ Net_MPD does not give any numeric exception codes. That way, a program does not have a way to check which error occured and do actions against that. For example, when trying to access mpd while the daemon is not running, you get the error message: > Error connecting: 111 ; Connection refused with the following warning on the console: > Warning: fsockopen(): unable to connect to localhost:6600 > (Connection refused) in /data/cvs/pear/instpear/share/ > pear/MPD/Common.php on line 98 When mpd is stopped after a connect has been made, I get the following error: > Write error with the following warning on console: > Notice: fwrite(): send of 8 bytes failed with errno=32 > Broken pipe in /data/cvs/pear/instpear/share/pear/MPD/ > Common.php on line 175 Since relying on textual messages is hackish, I ask you to provide numerical codes that can be retrieved via Exception::getCode()

Comments

 [2006-11-21 22:11 UTC] itrebal (Graham Christensen)
Fixed in CVS.