grape icon indicating copy to clipboard operation
grape copied to clipboard

`raise` instead of `throw` ?

Open ericproulx opened this issue 7 months ago • 0 comments

There are few places in the code that we raise an exception instead of throw :error and vice-versa.

We should be consistent in the code base since we mostly treat throw like exception. For instance, when dealing with Grape::Exceptions::ValidationErrors, we rescue them through rescue_from and throw and :error afterward with the backtrace and original_exception.

ericproulx avatar May 04 '25 19:05 ericproulx