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
9 declare(strict_types=1);
11 namespace Laminas\HttpHandlerRunner\Exception;
15 class EmitterException extends RuntimeException implements ExceptionInterface
17 public static function forHeadersSent() : self
19 return new self('Unable to emit response; headers already sent');
22 public static function forOutputSent() : self
24 return new self('Output has been emitted previously; cannot emit response');