ShopifyError
+ Inheritance diagram for ShopifyError:

Description

A cURL or Shopify error.

Errors with codes below 400 are cURL errors.

The API class returns null for 404; it's never thrown.

Public Properties

const NO_DATA
 Messages for codes with garbage response bodies. More...
 

Protected Properties

array $curlInfo = []
 

Public Methods

 __construct (int $code, string $message, array $curlInfo)
 
array getCurlInfo ()
 
bool isCurl ()
 

Properties

◆ NO_DATA

const NO_DATA
Initial value:
= [
400 => 'Bad Request',
401 => 'Unauthorized',
403 => 'Forbidden',
423 => 'Locked',
406 => 'Not Acceptable',
500 => 'Internal Server Error',
501 => 'Not Implemented',
503 => 'Service Unavailable',
504 => 'Gateway Timeout'
]

Messages for codes with garbage response bodies.

See also
https://help.shopify.com/en/api/getting-started/response-status-codes

Constructor

◆ __construct()

__construct ( int  $code,
string  $message,
array  $curlInfo 
)
Parameters
int$code
string$message
array$curlInfo

Methods

◆ getCurlInfo()

array getCurlInfo ( )
Returns
array

◆ isCurl()

bool isCurl ( )
final
Returns
bool