0 フォロワー

クラス yii\web\HeadersAlreadySentException

継承yii\web\HeadersAlreadySentException » yii\base\Exception » Exception
利用可能なバージョン2.0.14
ソースコード https://github.com/yiisoft/yii2/blob/master/framework/web/HeadersAlreadySentException.php

HeadersAlreadySentExceptionは、Webレスポンスが送信される前に既に送信されたヘッダーによって発生した例外を表します。

メソッド詳細

継承されたメソッドを隠す

__construct() パブリックメソッド

public void __construct ( $file, $line )
$file
$line

                public function __construct($file, $line)
{
    $message = YII_DEBUG ? "Headers already sent in {$file} on line {$line}." : 'Headers already sent.';
    parent::__construct($message);
}

            
getName() パブリックメソッド
public string getName ( )
return string

この例外のユーザーフレンドリーな名前

                public function getName()
{
    return 'Exception';
}