30 lines
700 B
PHP
30 lines
700 B
PHP
<?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 <dmirogin@ya.ru>
|
|
* @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);
|
|
}
|
|
}
|