Skip to content

Commit

Permalink
feat: add message to tokengeneration exception
Browse files Browse the repository at this point in the history
  • Loading branch information
prinx committed May 24, 2021
1 parent 8fd8886 commit c6975d3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Exceptions/TokenGenerationException.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,9 @@

class TokenGenerationException extends \Exception
{
public function __construct($message = '', $code = 0)
{
$message = $message ?: 'Cannot generate token. A possible reason is invalid API credentials.';
parent::__construct($message, $code);
}
}

0 comments on commit c6975d3

Please sign in to comment.