AfterShip / aftership-sdk-php

The PHP SDK of AfterShip API
65 stars 46 forks source link

Populate aftership error code when throwing an exception from Request… #26

Closed cmyker closed 7 years ago

cmyker commented 8 years ago

… to being able to get error code in catch block

Currently it is not possible to use something like this

if ($exception->getCode() === 4003) {

cmyker commented 8 years ago

Any feedback?

cmyker commented 8 years ago

BTW we are the paying users, I expect better service than this...

hans-lizihan commented 7 years ago

thanks for your contribution (and patience) 🙏

we will take better care of this repository in the future.