19 lines
603 B
PHP
19 lines
603 B
PHP
<?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";
|
|
|
|
}
|