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

Use more specific error types #85

Merged
merged 1 commit into from
May 12, 2024
Merged

Use more specific error types #85

merged 1 commit into from
May 12, 2024

Conversation

abhro
Copy link
Member

@abhro abhro commented May 12, 2024

@assert can get optimized away by the compiler, and generic error() uses ErrorException, which doesn't provide much information.

Used DomainError for an argument being outside a valid set, and used ArgumentError for multiple arguments relating to each other (e.g., multiple arrays having the same length).

@Assert can get optimized away by the compiler, and generic error() uses
ErrorException, which doesn't provide much information.

Used DomainError for an argument being outside a valid set, and used
ArgumentError for multiple arguments relating to each other (e.g.,
multiple arrays having the same length)
@giordano
Copy link
Member

Thanks!

@giordano giordano merged commit fe6e7eb into JuliaAstro:master May 12, 2024
10 checks passed
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.

2 participants