lob / lob-php

PHP Client for Lob API
https://lob.com
MIT License
67 stars 21 forks source link

Parent class for LOB exceptions #100

Closed jbarbede closed 5 years ago

jbarbede commented 6 years ago

Hi, it would be great that any exception thrown by LOB library extends a parent LobException class.

Right now it is kind of annoying to catch LOB exceptions because it requires either to try/catch every single type of LOB exception or make a try / catch on the PHP base class Exception and most of the time you don't want to do that.

mpiercy827 commented 5 years ago

Hi @jbarbede, thanks for bringing this to our attention. We'll be working on a fix soon and will keep you updated with it's progress.

mpiercy827 commented 5 years ago

@jbarbede this change is present in v3.0.2. Thanks again for opening this issue!