Final Class Yiisoft\PsrEmitter\HeadersHaveBeenSentException
| Inheritance | Yiisoft\PsrEmitter\HeadersHaveBeenSentException » Exception |
|---|---|
| Implements | Yiisoft\FriendlyException\FriendlyExceptionInterface |
Exception thrown when headers have already been sent.
Public Methods
| Method | Description | Defined By |
|---|---|---|
| getName() | Yiisoft\PsrEmitter\HeadersHaveBeenSentException | |
| getSolution() | Yiisoft\PsrEmitter\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 <<<SOLUTION
Headers already sent in $filename on line $line.
Emitter can't send headers once the headers block has already been sent.
SOLUTION;
}
Signup or Login in order to comment.