php-shopify icon indicating copy to clipboard operation
php-shopify copied to clipboard

Use different exception for Invalid API key or access token

Open gocebonev opened this issue 6 years ago • 1 comments

For better exception handling it would be nice to have a different exception thrown when the Api Key or access token are invalid instead of a generic all purpose ApiException.

gocebonev avatar Jan 07 '19 11:01 gocebonev

Wouldn't this be fixed by this pr (https://github.com/phpclassic/php-shopify/pull/133)? Would not be a different exception but you would have a reliable code; imo that should suffice in like 90% of the cases.

elzozo13 avatar Jan 27 '20 08:01 elzozo13