Browse Source

Merge pull request #7950 from ionas/http-exception

Updated HttpException class definition to discard abstract keyword.
Mark Story 10 years ago
parent
commit
239c5ddf60
1 changed files with 4 additions and 1 deletions
  1. 4 1
      src/Network/Exception/HttpException.php

+ 4 - 1
src/Network/Exception/HttpException.php

@@ -19,7 +19,10 @@ use Cake\Core\Exception\Exception;
  * All HTTP status/error related exceptions should extend this class so
  * catch blocks can be specifically typed.
  *
+ * You may also use this as a meaningful bridge to Cake\Core\Exception\Exception, e.g.:
+ * throw new \Cake\Network\Exception\HttpException('HTTP Version Not Supported', 505);
+ *
  */
-abstract class HttpException extends Exception
+class HttpException extends Exception
 {
 }