Skip to content

Commit 2a26ef0

Browse files
committed
Remove shortcut method from exception
1 parent 8b582af commit 2a26ef0

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

src/Exception/HttpClientException.php

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -80,23 +80,4 @@ public function setResponse(ResponseInterface $response = null)
8080
{
8181
$this->response = $response;
8282
}
83-
84-
/**
85-
* @param string $uri
86-
* @param string $adapterName
87-
* @param \Exception|null $previous
88-
*/
89-
public static function cannotFetchUri($uri, $adapterName, \Exception $previous = null)
90-
{
91-
$message = sprintf(
92-
'An error occurred when fetching the URI "%s" with the adapter "%s" ("%s").',
93-
$uri,
94-
$adapterName,
95-
isset($previous) ? $previous->getMessage() : ''
96-
);
97-
98-
$code = isset($previous) ? $previous->getCode() : 0;
99-
100-
return new self($message, $code, $previous);
101-
}
10283
}

0 commit comments

Comments
 (0)