stripe/stripe-java — pull request #25 by gbauman (2013-01-26 01:34:37+00:00)
Title: Method signatures should reflect all checked exceptions throwable by a method

This patch modifies method signatures to explicitly define all throwable checked exceptions.

It's considered bad form to 'hide' the exceptions that a method might throw behind a super-exception like StripeException.

This way clients can tell at a glance which exceptions might be thrown by a method, and it allows tooling to suggest more fine-grained exception handling while writing code.

This change will have no effect on any existing code that uses stripe-java. It is still perfectly fine to catch StripeException in a client application.

This is simply an improvement to syntax.