thenbrent / paypal-digital-goods

The missing PayPal Digital Goods PHP library. Discontinued - PayPal no longer offer the Digital Goods product.
Other
121 stars 38 forks source link

Should throw exceptions instead using exit calls. #5

Closed janar closed 11 years ago

janar commented 11 years ago

In main class there are some exit calls, but this seems to be not so good solution. I just had to change it in my project. Most simpe solution would be replacing exit => throw new Exception and done. That adds possibility to handle errors in my code however I want.

thenbrent commented 11 years ago

Yep, you're 100% correct. Patches welcome. :)