Skip to content

Commit

Permalink
fix: Update AwsException constructor to accept Throwable instead of E…
Browse files Browse the repository at this point in the history
…xception
  • Loading branch information
zishang520 authored Aug 26, 2024
1 parent 702b995 commit a3082d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Exception/AwsException.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@ class AwsException extends \RuntimeException implements
* @param string $message Exception message
* @param CommandInterface $command
* @param array $context Exception context
* @param \Exception $previous Previous exception (if any)
* @param \Throwable $previous Previous exception (if any)
*/
public function __construct(
$message,
CommandInterface $command,
array $context = [],
\Exception $previous = null
\Throwable $previous = null
) {
$this->data = isset($context['body']) ? $context['body'] : [];
$this->command = $command;
Expand Down

0 comments on commit a3082d4

Please sign in to comment.