errors
errors copied to clipboard
Common juju errors and functions to annotate errors. Based on juju/errgo
# Introduction Since `juju/errors` was first concieved a lot of changes have happened in the Go errors space that are starting to be in conflict with the design of this...
Hi, I am frequently using `NewNotFound()` and `NewBadRequest()` in my model logic so that the receiving controller knows about the type of error using an if-statement with `errors.Is(err, errors.NotFound)` for...
If you create an error, but provide the wrong number of format arguments: ```go err := errors.NotValidf("missing username", username) ``` then, the resulting error doesn't satisfy `errors.Is` as you'd expect:...