fa66fbf9697a5632ae983b06c714e6c5fa6486a8
[GitHub/WoltLab/WCF.git] /
1 <?php
2
3 /**
4 * @see https://github.com/laminas/laminas-httphandlerrunner for the canonical source repository
5 * @copyright https://github.com/laminas/laminas-httphandlerrunner/blob/master/COPYRIGHT.md
6 * @license https://github.com/laminas/laminas-httphandlerrunner/blob/master/LICENSE.md New BSD License
7 */
8
9 declare(strict_types=1);
10
11 namespace Laminas\HttpHandlerRunner\Exception;
12
13 use RuntimeException;
14
15 class EmitterException extends RuntimeException implements ExceptionInterface
16 {
17 public static function forHeadersSent() : self
18 {
19 return new self('Unable to emit response; headers already sent');
20 }
21
22 public static function forOutputSent() : self
23 {
24 return new self('Output has been emitted previously; cannot emit response');
25 }
26 }