Skip to content

Commit

Permalink
Adding @Package tags.
Browse files Browse the repository at this point in the history
Moving MissingModelException with the other exceptions.
  • Loading branch information
markstory committed Dec 5, 2010
1 parent ad80609 commit 5f47de7
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cake/libs/cake_request.php
Expand Up @@ -13,7 +13,6 @@
* @copyright Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org)
* @link http://cakephp.org CakePHP(tm) Project
* @package cake
* @subpackage cake.cake.libs
* @since CakePHP(tm) v 2.0
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
Expand All @@ -27,6 +26,7 @@
*
* `$request['controller']` or `$request->controller`.
*
* @package cake.libs
*/
class CakeRequest implements ArrayAccess {
/**
Expand Down
2 changes: 0 additions & 2 deletions cake/libs/controller/controller.php
Expand Up @@ -1220,5 +1220,3 @@ public function _scaffoldError($method) {
return false;
}
}

class MissingModelException extends RuntimeException {}
11 changes: 11 additions & 0 deletions cake/libs/error/exceptions.php
Expand Up @@ -301,6 +301,8 @@ class MissingHelperClassException extends CakeException {

/**
* Runtime Exceptions for ConnectionManager
*
* @package cake.libs
*/
class MissingDatabaseException extends CakeException {
protected $_messageTemplate = 'Database connection "%s" could not be found.';
Expand Down Expand Up @@ -368,3 +370,12 @@ class MissingShellFileException extends CakeException {
class MissingTableException extends CakeException {
protected $_messageTemplate = 'Database table %s for model %s was not found.';
}

/**
* Exception Raised when a Model could not be found.
*
* @package cake.libs
*/
class MissingModelException extends CakeException {
protected $_messageTemplate = 'Model %s could not be found.';
}

0 comments on commit 5f47de7

Please sign in to comment.