You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can modify the class WhatsappApiException by adding a method called getWhatsappApiError() that will allow obtaining the error object. Within the error object, you will be able to check the error codes sent by WhatsApp API.
Yes is perfect because the class WhatsappApiException return only the message of the exception throwed from API.
I could also return the HTTP code, but I'm not sure if it would be helpful. Note that in the case of media not found, the HTTP code is 400.
I think that is the best way to register the HTTP status code in the WhatsappApiError and expose it with public int getHttpStatusCode().
Sorry for the late reply @Bindambc,
Yes is perfect because the class
WhatsappApiException
return only the message of the exception throwed from API.I think that is the best way to register the HTTP status code in the
WhatsappApiError
and expose it withpublic int getHttpStatusCode()
.I hope that is useful 😀.
Thanks,
Giuseppe.
Originally posted by @pcomp96 in #107 (comment)
The text was updated successfully, but these errors were encountered: