braintree / braintree_php

Braintree PHP library
https://developer.paypal.com/braintree/docs/start/overview
MIT License
546 stars 224 forks source link

Please use messages in your exceptions #250

Closed Danack closed 5 years ago

Danack commented 5 years ago

General information

Issue description

Please include error messages in your exception.

Currently most of the exceptions your library throw do not include any message in them and people have to write custom code to convert from the exception type to what went wrong.

This makes your library harder to use, than if you included messages with the exception

demerino commented 5 years ago

Thanks for the feedback. We'll look into updating our error messages in the next major version. For now, any end-user facing messages should be localized by the merchant app.