Changeset 87

Show
Ignore:
Timestamp:
02/08/07 18:58:23 (2 years ago)
Author:
mikey
Message:

bugfix: throw ValueConversionException? in case no ValueConverterFactory? could be found instead of returning null

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/XJConf/converters/factories/ValueConverterFactoryChain.php

    r77 r87  
    33 * Factory to create the correct ValueConverterFactory. 
    44 * 
    5  * @author  Stephan Schmidt <stephan.schmidt@schlund.de> 
    6  * @author  Frank Kleine <frank.kleine@schlund.de> 
     5 * @author      Stephan Schmidt <stephan.schmidt@schlund.de> 
     6 * @author      Frank Kleine <frank.kleine@schlund.de> 
     7 * @package     XJConf 
     8 * @subpackage  converters 
    79 */ 
    810XJConfLoader::load('converters.factories.ValueConverterFactory', 
     
    4446     * @param   Definition             $def 
    4547     * @return  ValueConverterFactory 
     48     * @throws  ValueConversionException 
    4649     */ 
    4750    public static function getFactory(Definition $def) 
     
    5356        } 
    5457 
    55         return null
     58        throw new ValueConversionException('Could not find ValueConverterFactory for definition of tag <' . $def->getName() . '> with type "' . $def->getType() . '". If this type is a class it probably has not been loaded.')
    5659    } 
    5760