svn: /pear2/sandbox/Pyrus_WebFrontend/trunk/src/pear2/Pyrus/WebFrontend/ Controller.php Exception.php UnregisteredViewException.php

From: Date: Tue, 23 Mar 2010 14:19:10 +0000
Subject: svn: /pear2/sandbox/Pyrus_WebFrontend/trunk/src/pear2/Pyrus/WebFrontend/ Controller.php Exception.php UnregisteredViewException.php
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-core+get-9321@lists.php.net to get a copy of this message
saltybeagle Tue, 23 Mar 2010 14:19:10 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=296673 Log: Add pear2 standards Exception interface. Throw the proper exception when an un-registered view is called. Changed paths: U pear2/sandbox/Pyrus_WebFrontend/trunk/src/pear2/Pyrus/WebFrontend/Controller.php A pear2/sandbox/Pyrus_WebFrontend/trunk/src/pear2/Pyrus/WebFrontend/Exception.php A pear2/sandbox/Pyrus_WebFrontend/trunk/src/pear2/Pyrus/WebFrontend/UnregisteredViewException.php Modified: pear2/sandbox/Pyrus_WebFrontend/trunk/src/pear2/Pyrus/WebFrontend/Controller.php =================================================================== --- pear2/sandbox/Pyrus_WebFrontend/trunk/src/pear2/Pyrus/WebFrontend/Controller.php 2010-03-23 14:13:59 UTC (rev 296672) +++ pear2/sandbox/Pyrus_WebFrontend/trunk/src/pear2/Pyrus/WebFrontend/Controller.php 2010-03-23 14:19:10 UTC (rev 296673) @@ -85,7 +85,7 @@ if (isset($this->view_map[$this->options['view']])) { $this->actionable[] = new $this->view_map[$this->options['view']]($this->options); } else { - throw new Exception('Un-registered view'); + throw new UnregisteredViewException('Un-registered view'); } } Added: pear2/sandbox/Pyrus_WebFrontend/trunk/src/pear2/Pyrus/WebFrontend/Exception.php =================================================================== --- pear2/sandbox/Pyrus_WebFrontend/trunk/src/pear2/Pyrus/WebFrontend/Exception.php (rev 0) +++ pear2/sandbox/Pyrus_WebFrontend/trunk/src/pear2/Pyrus/WebFrontend/Exception.php 2010-03-23 14:19:10 UTC (rev 296673) @@ -0,0 +1,6 @@ +<?php +namespace pear2\Pyrus\WebFrontend; +interface Exception +{ + +} \ No newline at end of file Added: pear2/sandbox/Pyrus_WebFrontend/trunk/src/pear2/Pyrus/WebFrontend/UnregisteredViewException.php =================================================================== --- pear2/sandbox/Pyrus_WebFrontend/trunk/src/pear2/Pyrus/WebFrontend/UnregisteredViewException.php (rev 0) +++ pear2/sandbox/Pyrus_WebFrontend/trunk/src/pear2/Pyrus/WebFrontend/UnregisteredViewException.php 2010-03-23 14:19:10 UTC (rev 296673) @@ -0,0 +1,6 @@ +<?php +namespace pear2\Pyrus\WebFrontend; +class UnregisteredViewException extends \UnexpectedValueException implements Exception +{ + +}

« previous php.pear.core (#9321) next »