Changeset 3119

Show
Ignore:
Timestamp:
04/14/08 20:23:21 (3 months ago)
Author:
pmjones
Message:

Solar_Struct: [CHG] When reporting "no such key", now gives the class name and the list of available keys.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/Solar/Struct.php

    r3106 r3119  
    142142        } else { 
    143143            throw $this->_exception('ERR_NO_SUCH_KEY', array( 
    144                 'key' => $key, 
     144                'class' => get_class($this), 
     145                'key'   => $key, 
     146                'keys'  => array_keys($this->_data), 
    145147            )); 
    146148        }