Skip to content

Commit

Permalink
Correct DocBlock for HttpException
Browse files Browse the repository at this point in the history
http://api.cakephp.org/2.8/class-HttpException.html

> Class HttpException
> Base class that all Exceptions extend.

Which is actually the short description of  CakeBaseException.

http://api.cakephp.org/2.8/class-CakeBaseException.html

Probably because the DocBlock was placed before the if clause.
  • Loading branch information
ravage84 committed Apr 14, 2016
1 parent 1d4e39a commit 25a0796
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Cake/Error/exceptions.php
Expand Up @@ -53,14 +53,15 @@ public function responseHeader($header = null, $value = null) {

}

if (!class_exists('HttpException', false)) {
/**
* Parent class for all of the HTTP related exceptions in CakePHP.
*
* All HTTP status/error related exceptions should extend this class so
* catch blocks can be specifically typed.
*
* @package Cake.Error
*/
if (!class_exists('HttpException', false)) {
class HttpException extends CakeBaseException {
}
}
Expand Down

0 comments on commit 25a0796

Please sign in to comment.