mixpanel-java icon indicating copy to clipboard operation
mixpanel-java copied to clipboard

Improper errors/exceptions message

Open a-wakeel opened this issue 3 years ago • 2 comments

When you don't supply the token or the token value is given null the SDK throws exception with message mix panel Server refused to accept messages, they may be malformed which i think is very confusing. I have found (on the internet) that it also throws the same error due to some other errors as well.

It would be good and helpful to have more proper and meaningful errors for such scenarios.

I think the sendData() method could be modified to return something more diverse and meaningful.

a-wakeel avatar Sep 05 '22 05:09 a-wakeel

Im fully agree!

efimmatytsin avatar Feb 13 '23 10:02 efimmatytsin