sourcegraph/lib/errors
Robert Lin d75a3733d4
lib/errors: add interfaces for typed errors (#39256)
Introducing custom error types can be tricky - I realized there's no code-level assertions or docs on Is and As implementations, so this PR introduces some interfaces to guide implementers. We write them ourselves because the standard library does not provide them, and it allows us to include docstrings better.
2022-07-25 19:59:14 -04:00
..
cockroach.go lib/errors: new MultiError error type and utilities (#31466) 2022-02-18 11:07:02 -08:00
CODENOTIFY trace, tracer, errors, observation: add devx to CODENOTIFY (#38897) 2022-07-18 18:19:13 +02:00
errors_test.go lib/errors: new MultiError error type and utilities (#31466) 2022-02-18 11:07:02 -08:00
errors.go lib/errors: add interfaces for typed errors (#39256) 2022-07-25 19:59:14 -04:00
filter_test.go Add helper predicates for HasType and Is (#30975) 2022-02-10 16:47:46 +00:00
filter.go ignore any context errors in code monitors (#35064) 2022-05-07 12:13:24 -04:00
group_test.go lib/errors: new MultiError error type and utilities (#31466) 2022-02-18 11:07:02 -08:00
group.go lib/errors: new MultiError error type and utilities (#31466) 2022-02-18 11:07:02 -08:00
level_test.go lib/errors: Add new classifiedError type (#38671) 2022-07-13 16:22:28 +00:00
levels.go lib/errors: Add new classifiedError type (#38671) 2022-07-13 16:22:28 +00:00
multi_error.go lib/errors: add interfaces for typed errors (#39256) 2022-07-25 19:59:14 -04:00