Aerys\BodyParser::fail PHP Method

fail() private method

private fail ( $e = null )
    private function fail($e = null)
    {
        $this->error = $e ?? ($e = new ClientSizeException());
        foreach ($this->bodyPromisors as list($promisor, $metadata)) {
            $promisor->fail($e);
            $metadata->fail($e);
        }
        $this->bodyPromisors = [];
        $this->req = null;
        foreach ($this->whens as list($cb, $cbData)) {
            $cb($e, null, $cbData);
        }
        $this->whens = $this->watchers = [];
    }