-
-
Notifications
You must be signed in to change notification settings - Fork 450
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
ErrorKind::Input
#535
Comments
Regarding weighted sampling: @sicking's #518 introduced I think the best option would be to change the return type to enum WeightedError {
NoItem,
InvalidWeights,
}
impl From<WeightedError> for Error { .. } or similar (possibly separate variants for negative weights, zero weights and no weights?).
|
@sicking you offered to look into this I think? |
I'll definitely get to this this week. |
ErrorKind
was designed with RNG errors in mind, but has also found some use in other code (#518). I suggest we add a new enum variant:Input
(orInvalidInput
orUserInput
or something), meaning that a function was called with invalid parameters.The text was updated successfully, but these errors were encountered: