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

IsApplicable should not throw exceptions instead of returning false. #2639

Open
atamazov opened this issue Dec 25, 2023 · 2 comments
Open

IsApplicable should not throw exceptions instead of returning false. #2639

atamazov opened this issue Dec 25, 2023 · 2 comments
Assignees

Comments

@atamazov
Copy link
Contributor

@seungmanhan The helper functions in ProblemDescription classes may throw instead of returning false. This leads to IsApplicable to throw exceptions, which is wrong.

Involved primitives:

  • Reduce
  • Norm

Originally posted by @atamazov in #2481 (comment)

@atamazov
Copy link
Contributor Author

[Attribution] @junliume @JehandadKhan

@atamazov atamazov changed the title IsApplicable should not throw. IsApplicable should not throw exceptions instead of returning false. Dec 25, 2023
@atamazov
Copy link
Contributor Author

In some cases (incorrect ProblemConfig) exceptions are allowed, more info at #2562 (comment)

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

No branches or pull requests

4 participants