Show
Ignore:
Timestamp:
11/04/06 22:49:49 (2 years ago)
Author:
dominik
Message:

throw AgaviConfigurationException? instead of AgaviException? when the chosen output type is not configured
phpdoc fixes

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/controller/AgaviController.class.php

    r1131 r1236  
    201201   * @param      string A module name. 
    202202   * @param      string An action name. 
     203   * @param      array|AgaviParameterHolder Additional parameters which will be 
     204   *                                        passed to the action. 
    203205   * 
    204206   * @throws     <b>AgaviConfigurationException</b> If an invalid configuration  
    205207   *                                                setting has been found. 
    206    * @throws     <b>AgaviForwardException</b> If an error occurs while forwarding 
    207    *                                          the request. 
     208   * @throws     <b>AgaviForwardException</b> If an error occurs while  
     209   *                                          forwarding the request. 
    208210   * @throws     <b>AgaviInitializationException</b> If the action could not be 
    209211   *                                                 initialized. 
    210    * @throws     <b>AgaviSecurityException</b> If the action requires security but 
    211    *                                           the user implementation is not of 
    212    *                                           type SecurityUser. 
     212   * @throws     <b>AgaviSecurityException</b> If the action requires security  
     213   *                                           but the user implementation is  
     214   *                                           not of type SecurityUser. 
    213215   * 
    214216   * @author     Sean Kerr <skerr@mojavi.org> 
     
    705707   * @param      int A rendering mode. 
    706708   * 
    707    * @throws     <b>AgaviRenderException</b> - If an invalid render mode has been  
    708    *                                           set. 
     709   * @throws     <b>AgaviRenderException</b> - If an invalid render mode has  
     710   *                                           been set. 
    709711   * 
    710712   * @author     Sean Kerr <skerr@mojavi.org> 
     
    760762   * @return     bool Whether or not the operation was successful. 
    761763   * 
    762    * @throws     <b>AgaviException</b> If the given output type doesnt exist. 
     764   * @throws     <b>AgaviConfigurationException</b> If the given output type  
     765   *                                                doesnt exist. 
    763766   * 
    764767   * @author     David Zuelke <dz@bitxtender.com> 
     
    774777      return false; 
    775778    } else { 
    776       throw new AgaviException('Output Type "' . $outputType . '" has not been configured.'); 
     779      throw new AgaviConfigurationException('Output Type "' . $outputType . '" has not been configured.'); 
    777780    } 
    778781  } 
     
    798801   * @return     array An associative array of output type settings and params. 
    799802   * 
    800    * @throws     <b>AgaviException</b> If the given output type doesnt exist. 
     803   * @throws     <b>AgaviConfigurationException</b> If the given output type  
     804   *                                                doesnt exist. 
    801805   * 
    802806   * @author     David Zuelke <dz@bitxtender.com> 
     
    811815      return $this->outputTypes[$outputType]; 
    812816    } else { 
    813       throw new AgaviException('Output Type "' . $outputType . '" has not been configured.'); 
     817      throw new AgaviConfigurationException('Output Type "' . $outputType . '" has not been configured.'); 
    814818    } 
    815819  }