Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set new error to replace ArgumentError #1478

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

moretoend
Copy link

@moretoend moretoend commented Feb 14, 2024

This PR contains a proposal of removing ArgumentError raising on Search and Sorting and replace it by a custom error Ransack::InvalidSearchError as issued on #1460.

As of now, the exception Ransack::InvalidSearchError is inheriting from ArgumentError to enable a backward compatibility avoiding breaking changes in a minor version and a deprecation message for using ArgumentError were added. In a future version, it is expected to replace this inheritance from ArgumentError to StandardError.

The docs were also updated and there is a proposal of moving Error Handling to Getting Started area as it is an important configuration to be set.

@moretoend moretoend changed the title Set new search erro to replace ArgumentError Set new error to replace ArgumentError Feb 14, 2024
@scarroll32
Copy link
Member

@moretoend this looks great but it is blocked by a CI problem #1489

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants