This repository has been archived by the owner on Oct 24, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(Error): add oauth error classes
- Loading branch information
Jens Schulze
committed
May 2, 2016
1 parent
68d263a
commit 92eec57
Showing
3 changed files
with
93 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?php | ||
/** | ||
* @author @jayS-de <jens.schulze@commercetools.de> | ||
*/ | ||
|
||
namespace Commercetools\Core\Error; | ||
|
||
/** | ||
* @package Commercetools\Core\Error | ||
* | ||
* @method string getCode() | ||
* @method AccessDeniedError setCode(string $code = null) | ||
* @method string getMessage() | ||
* @method AccessDeniedError setMessage(string $message = null) | ||
*/ | ||
class AccessDeniedError extends ApiError | ||
{ | ||
const CODE = 'access_denied'; | ||
} |
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 | ||
/** | ||
* @author @jayS-de <jens.schulze@commercetools.de> | ||
*/ | ||
|
||
namespace Commercetools\Core\Error; | ||
|
||
/** | ||
* @package Commercetools\Core\Error | ||
* | ||
* @method string getCode() | ||
* @method AccessDeniedError setCode(string $code = null) | ||
* @method string getMessage() | ||
* @method AccessDeniedError setMessage(string $message = null) | ||
*/ | ||
class InvalidTokenError extends ApiError | ||
{ | ||
const CODE = 'invalid_token'; | ||
} |
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