Changeset 36

Show
Ignore:
Timestamp:
08/31/06 21:19:27 (2 years ago)
Author:
mikey
Message:

removed unnecessary catching of an never thrown exception

Files:

Legend:

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

    r14 r36  
    3737    public function convertValue(Tag $tag, Definition $def) { 
    3838        $value = $tag->getData(); 
    39  
     39         
    4040        switch ($this->type) { 
    4141            case 'boolean': 
  • trunk/XJConf/definitions/CDataDefinition.php

    r21 r36  
    175175            $this->valueConverter = ValueConverterFactoryChain::getFactory($this)->createValueConverter($this); 
    176176        } 
    177  
     177         
    178178        return $this->valueConverter; 
    179179    } 
  • trunk/XJConf/definitions/TagDefinition.php

    r22 r36  
    165165        if (null == $this->constructor && null == $this->factoryMethod) { 
    166166            $this->constructor = new ConstructorDefinition(); 
    167             try { 
    168                 $this->constructor->addChildDefinition(new CDataDefinition()); 
    169             } catch (Exception $e) { 
    170                 throw new ValueConversionException('Could not create constructor object: ' . $e->getMessage()); 
    171             } 
     167            $this->constructor->addChildDefinition(new CDataDefinition()); 
    172168        } 
    173169 
     
    396392            $this->valueConverter = ValueConverterFactoryChain::getFactory($this)->createValueConverter($this); 
    397393        } 
    398  
     394         
    399395        return $this->valueConverter; 
    400396    }