Final Class Yiisoft\Yii\Runner\Http\Exception\HeadersHaveBeenSentException
| Inheritance | Yiisoft\Yii\Runner\Http\Exception\HeadersHaveBeenSentException » Exception |
|---|---|
| Implements | Yiisoft\FriendlyException\FriendlyExceptionInterface |
Public Methods
| Method | Description | Defined By |
|---|---|---|
| getName() | Yiisoft\Yii\Runner\Http\Exception\HeadersHaveBeenSentException | |
| getSolution() | Yiisoft\Yii\Runner\Http\Exception\HeadersHaveBeenSentException |
Method Details
| public string getName ( ) |
public function getName(): string
{
return 'HTTP headers have been sent.';
}
| public string|null getSolution ( ) |
public function getSolution(): ?string
{
headers_sent($filename, $line);
return "Headers already sent in $filename on line $line\n"
. "Emitter can't send headers once the headers block has already been sent.";
}
Signup or Login in order to comment.