Jackalope\Transport\Jackrabbit\Request::getLongErrorString PHP Метод

getLongErrorString() защищенный Метод

It returns a "nicely" formatted URI of the request plus the output of curl_getinfo plus the response body including its size
protected getLongErrorString ( Jackalope\Transport\Jackrabbit\curl $curl, string $response ) : string
$curl Jackalope\Transport\Jackrabbit\curl The curl object
$response string the response body
Результат string the error message
    protected function getLongErrorString($curl, $response)
    {
        $string = $this->getShortErrorString();
        $string .= "--curl getinfo: --\n" . var_export($curl->getinfo(), true) . "\n";
        $string .= "--request body (size: " . strlen($this->body) . " bytes): --\n";
        if (strlen($this->body) > 2000) {
            $string .= substr($this->body, 0, 2000);
            $string .= "\n (truncated)\n";
        } else {
            $string .= $this->body . "\n";
        }
        $string .= "--response body (size: " . strlen($response) . " bytes): --\n{$response}\n--end response body--\n";
        return $string;
    }