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
We usually throw http hasError status codes as Custom Exception with its associated data. Is it possible to do that with GetConnect. When I tried GetConnect, I got usual errors like 404, 422 as Response model. I tried setting errorSafety to false and added a response modifier that checked for Response.hasError & throw a custom Exception. But this block
if (!errorSafety) {
throw GetHttpException(err.toString());
}
in catch of _performRequest method is overriding it.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
We usually throw http hasError status codes as Custom Exception with its associated data. Is it possible to do that with GetConnect. When I tried GetConnect, I got usual errors like 404, 422 as Response model. I tried setting errorSafety to false and added a response modifier that checked for Response.hasError & throw a custom Exception. But this block
in catch of _performRequest method is overriding it.
Beta Was this translation helpful? Give feedback.
All reactions