1: <?php declare(strict_types=1);
2:
3: namespace Salient\Contract\Curler\Exception;
4:
5: /**
6: * @api
7: */
8: interface CurlErrorExceptionInterface extends RequestExceptionInterface
9: {
10: /**
11: * Get the cURL error code associated with the exception
12: */
13: public function getCurlError(): int;
14:
15: /**
16: * Check if a network error caused the exception
17: */
18: public function isNetworkError(): bool;
19: }
20: