sendgrid / sendgrid-google-java

7 stars 23 forks source link

Public variable for messages is probably not the best way for error handling in Java #7

Closed codenameone closed 10 years ago

codenameone commented 10 years ago

While this is usable the API is odd and unintuitive to most Java developers, its perfectly OK to just throw an exception if the error is fatal or maybe provide a warning callback e.g. send(WarningCallback) where WarningCallback will be an optional interface that has a method like: warning(String message).

Thanks.

danielamihalache commented 10 years ago

Can you give me you email address to discuss about this?

codenameone commented 10 years ago

Sure, shai at codenameone dot com.