Skip to content

raise instead of throw ? #2564

@ericproulx

Description

@ericproulx

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions