mixpanel / mixpanel-java

Other
49 stars 37 forks source link

Improper errors/exceptions message #38

Open a-wakeel opened 2 years ago

a-wakeel commented 2 years ago

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.

efimmatytsin commented 1 year ago

Im fully agree!