Make error::Kind public and provide a getter. This allows lib/app code to handle different kind of errors, e.g.
match err.kind() {
Kind::Column(name) => panic!("You forgot to include column {} into the query", name),
Kind::Parameter(_, _) => panic!("You forgot to pass a parameter to the prepared statement"),
kind => panic!("{:?}", kind),
}
I documented errors I know about, but the ones I don't know what they do I left undocumented, hiding the doc warning.
Make
error::Kind
public and provide a getter. This allows lib/app code to handle different kind of errors, e.g.I documented errors I know about, but the ones I don't know what they do I left undocumented, hiding the doc warning.