fatcode/http-server

View on GitHub
src/Exception/ResponseHttpServerException.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php declare(strict_types=1);

namespace FatCode\HttpServer\Exception;

use RuntimeException;

class ResponseHttpServerException extends RuntimeException implements HttpServerException
{
    public static function forWritingToCompleteResponse() : self
    {
        return new self('Cannot write to the response, response is already completed.');
    }
}