[Solar-svn] Revision 3106

pmjones at solarphp.com pmjones at solarphp.com
Sat Apr 12 20:05:44 CDT 2008


Solar_Struct: [CHG] Method __get(), when throwing NO_SUCH_KEY exception, now tells you the offending key name.


Modified: trunk/Solar/Struct.php
===================================================================
--- trunk/Solar/Struct.php	2008-04-12 13:11:06 UTC (rev 3105)
+++ trunk/Solar/Struct.php	2008-04-13 01:05:44 UTC (rev 3106)
@@ -140,7 +140,9 @@
         if (array_key_exists($key, $this->_data)) {
             return $this->_data[$key];
         } else {
-            throw $this->_exception('ERR_NO_SUCH_KEY');
+            throw $this->_exception('ERR_NO_SUCH_KEY', array(
+                'key' => $key,
+            ));
         }
     }
     




More information about the Solar-svn mailing list