goshippo / shippo-node-client

Shipping API Node.js library (USPS, FedEx, UPS and more)
https://goshippo.com/docs
MIT License
136 stars 54 forks source link

Expose error constructors #14

Closed dylanpyle closed 4 years ago

dylanpyle commented 9 years ago

It would be great to have the following Error constructors available on the exported Shippo object. The only way to detect a specific type of error currently is to compare the type property against a string, which isn't ideal.

ShippoNotFoundError
ShippoInvalidRequestError
ShippoAPIError
ShippoAuthenticationError
ShippoConnectionError