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 have an issue with the grape that I cannot rescue 415 Unsupported Media type error. It does not appear in any rescue_from handlers, the reason for this is that this error is handled by grape with throw/ catch statements and logic for those different from raise/rescue.
I made a patch which catch thrown errors and than raises those thought grape base exception, like this:
Hi.
I have an issue with the grape that I cannot rescue
415 Unsupported Media type error
. It does not appear in anyrescue_from
handlers, the reason for this is that this error is handled by grape withthrow
/catch
statements and logic for those different fromraise
/rescue
.I made a patch which catch thrown errors and than raises those thought grape base exception, like this:
Could you please advice a better way to handle that? What is the grape way to handle thrown errors?
The text was updated successfully, but these errors were encountered: