This guide will show you how to catch errors thrown by EasyPost objects.
In the event of a client or server error, the response will contain the standard
5xx respectively, accompanied by a well-formed JSON body describing the issue (e.g., a required field was omitted, a purchase failed, etc.)
Each client library will encapsulate these errors and raise an exception, in addition to other exceptional cases, such as network failures. It is recommended to handle exceptions gracefully and to report any issues to firstname.lastname@example.org.
In this example, we'll show you how to catch the errors can be thrown when creating a verified Address.