Skip to content
Permalink
Browse files

Correct DocBlock for HttpException

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 25a079686501db78297462cd87af560f36247c36
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/Cake/Error/exceptions.php
@@ -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 {
}
}

0 comments on commit 25a0796

Please sign in to comment.
You can’t perform that action at this time.