google-code-export / google-checkout-java-sdk

Automatically exported from code.google.com/p/google-checkout-java-sdk
1 stars 0 forks source link

Requests should throw IllegalArgumentException instead of CheckoutException #31

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The SDK now throws some exceptions (at least for the constructor of
CheckoutShoppingCartRequest, and Item.setMerchantPrivateItemData); these
exceptions are CheckoutException. They should be IllegalArgumentException
since passing in a null is not a valid argument.

Original issue reported on code.google.com by dang.cha...@gmail.com on 7 Dec 2007 at 6:46

GoogleCodeExporter commented 9 years ago
As of revision238, requests now throw an IllegalArgumentException for invalid
MerchantInfo.

Original comment by dang.cha...@gmail.com on 7 Dec 2007 at 10:16