forked from yiisoft/yii2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
…f headers were sent before web response
- Loading branch information
Showing
3 changed files
with
32 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?php | ||
/** | ||
* @link http://www.yiiframework.com/ | ||
* @copyright Copyright (c) 2008 Yii Software LLC | ||
* @license http://www.yiiframework.com/license/ | ||
*/ | ||
|
||
namespace yii\web; | ||
|
||
use yii\base\Exception; | ||
|
||
/** | ||
* HeadersAlreadySentException represents an exception caused by | ||
* any headers that were already sent before web response was sent. | ||
* | ||
* @author Dmitry Dorogin <[email protected]> | ||
* @since 2.0.14 | ||
*/ | ||
class HeadersAlreadySentException extends Exception | ||
{ | ||
/** | ||
* @inheritdoc | ||
*/ | ||
public function __construct($file, $line) | ||
{ | ||
$message = YII_DEBUG ? "Headers already sent in {$file} on line {$line}." : 'Headers already sent.'; | ||
parent::__construct($message); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters