| @@ -2,8 +2,9 @@ | ||
| 2 | 2 | |
| 3 | 3 | namespace Dudlewebs\WPMCS\s3\Aws; |
| 4 | 4 | |
| 5 | 5 | use Dudlewebs\WPMCS\s3\Aws\Api\Parser\Exception\ParserException; |
| 6 | +use Dudlewebs\WPMCS\s3\Aws\Exception\AwsException; | |
| 6 | 7 | use Dudlewebs\WPMCS\s3\GuzzleHttp\Promise; |
| 7 | 8 | use Dudlewebs\WPMCS\s3\Psr\Http\Message\RequestInterface; |
| 8 | 9 | use Dudlewebs\WPMCS\s3\Psr\Http\Message\ResponseInterface; |
| 9 | 10 | /** |
| @@ -41,9 +42,9 @@ | ||
| 41 | 42 | * @param string $exceptionClass Exception class to throw. |
| 42 | 43 | * @param bool $collectStats Whether to collect HTTP transfer |
| 43 | 44 | * information. |
| 44 | 45 | */ |
| 45 | - public function __construct(callable $httpHandler, callable $parser, callable $errorParser, $exceptionClass = 'Dudlewebs\\WPMCS\\s3\\Aws\\Exception\\AwsException', $collectStats = \false) | |
| 46 | + public function __construct(callable $httpHandler, callable $parser, callable $errorParser, $exceptionClass = AwsException::class, $collectStats = \false) | |
| 46 | 47 | { |
| 47 | 48 | $this->httpHandler = $httpHandler; |
| 48 | 49 | $this->parser = $parser; |
| 49 | 50 | $this->errorParser = $errorParser; |