generated from Firehed/php-library-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
39 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace SnapAuth\Exception; | ||
|
||
use InvalidArgumentException; | ||
use SnapAuth\ApiError; | ||
|
||
class InvalidSecretKey extends InvalidArgumentException implements ApiError | ||
{ | ||
public function __construct() | ||
{ | ||
parent::__construct( | ||
message: 'Invalid secret key. Please verify you copied the full value from the SnapAuth dashboard.', | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace SnapAuth\Exception; | ||
|
||
use InvalidArgumentException; | ||
use SnapAuth\ApiError; | ||
|
||
class MissingSecretKey extends InvalidArgumentException implements ApiError | ||
{ | ||
public function __construct() | ||
{ | ||
parent::__construct( | ||
'Secret key missing. It can be explictly provided, or it can be ' . | ||
'auto-detected from the SNAPAUTH_SECRET_KEY environment variable.' | ||
); | ||
} | ||
} |