From e08b8148a567df8c33aa502a1afccc24002deb4c Mon Sep 17 00:00:00 2001 From: Xinquan Zhu Date: Fri, 18 Jul 2014 14:49:44 +0900 Subject: [PATCH] throw CakeException instead, putting throws tag in the comment --- lib/Cake/Network/CakeResponse.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Cake/Network/CakeResponse.php b/lib/Cake/Network/CakeResponse.php index 47f49a6bc..c0c48cb25 100644 --- a/lib/Cake/Network/CakeResponse.php +++ b/lib/Cake/Network/CakeResponse.php @@ -517,6 +517,7 @@ class CakeResponse { * @param string $name the header name * @param string $value the header value * @return void + * @throws CakeException When an header already been sent */ protected function _sendHeader($name, $value = null) { if (!headers_sent($filename, $linenum)) { @@ -527,7 +528,7 @@ class CakeResponse { } } else { if (Configure::read('debug')) { - throw new Exception(__d('cake_dev', 'Headers already sent in $filename on line $linenum')); + throw new CakeException(__d('cake_dev', 'Headers already sent in $filename on line $linenum')); } } }