-
Notifications
You must be signed in to change notification settings - Fork 1
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
1 parent
69c6be8
commit 09baa54
Showing
4 changed files
with
35 additions
and
17 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,18 @@ | ||
<?php | ||
|
||
namespace RNEClient; | ||
|
||
class INPIException extends \Exception | ||
{ | ||
const BAD_REQUEST_ERROR = 'The request is invalid.'; | ||
const BAD_CREDENTIALS_ERROR = 'The user credentials are invalid.'; | ||
const FORBIDDEN_ERROR = 'The user does not have the necessary authorizations to make the request.'; | ||
const TOO_MANY_REQUESTS_ERROR = 'The user has exceeded the daily quotas.'; | ||
const INTERNAL_SERVER_ERROR = 'The server encountered an unexpected error.'; | ||
|
||
public function __construct($message, $code = 0, \Throwable $previous = null) | ||
{ | ||
parent::__construct($message, $code, $previous); | ||
} | ||
|
||
} |
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
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