diff --git a/lib/Cake/Error/exceptions.php b/lib/Cake/Error/exceptions.php index 6e2cad481..7996f658f 100644 --- a/lib/Cake/Error/exceptions.php +++ b/lib/Cake/Error/exceptions.php @@ -53,14 +53,15 @@ class CakeBaseException extends RuntimeException { } +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 { } }