implement TwingleShop integration
This commit is contained in:
parent
ea46e6a747
commit
8cfa270dff
60 changed files with 5200 additions and 106 deletions
19
Civi/Twingle/Shop/Exceptions/ApiCallError.php
Normal file
19
Civi/Twingle/Shop/Exceptions/ApiCallError.php
Normal file
|
@ -0,0 +1,19 @@
|
|||
<?php
|
||||
|
||||
namespace Civi\Twingle\Shop\Exceptions;
|
||||
|
||||
use Civi\Twingle\Exceptions\BaseException as BaseException;
|
||||
|
||||
/**
|
||||
* A simple custom exception that indicates a problem within the
|
||||
* Civi\Twingle\Shop\ApiCall class
|
||||
*/
|
||||
class ApiCallError extends BaseException {
|
||||
public const ERROR_CODE_API_TOKEN_MISSING = "api_token_missing";
|
||||
public const ERROR_CODE_CONNECTION_FAILED = "connection_failed";
|
||||
public const ERROR_CODE_NOT_CONNECTED = "not_connected";
|
||||
public const ERROR_CODE_GET_REQUEST_FAILED = "get_request_failed";
|
||||
public const ERROR_CODE_404 = "404";
|
||||
public const ERROR_CODE_500 = "500";
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue