Files
moby/daemon
Brian Goff 87a12421a9 Add helpers to create errdef errors
Instead of having to create a bunch of custom error types that are doing
nothing but wrapping another error in sub-packages, use a common helper
to create errors of the requested type.

e.g. instead of re-implementing this over and over:

```go
type notFoundError struct {
  cause error
}

func(e notFoundError) Error() string {
  return e.cause.Error()
}

func(e notFoundError) NotFound() {}

func(e notFoundError) Cause() error {
  return e.cause
}
```

Packages can instead just do:

```
  errdefs.NotFound(err)
```

Signed-off-by: Brian Goff <cpuguy83@gmail.com>
2018-01-11 21:21:43 -05:00
..
2017-12-18 17:22:25 +01:00
2017-09-08 18:23:21 -04:00
2018-01-09 12:00:28 -05:00
2017-12-18 17:41:53 +01:00
2017-12-18 17:22:25 +01:00
2017-10-18 10:26:58 +08:00
2017-12-18 17:41:53 +01:00
2017-09-06 12:05:19 -04:00
2018-01-11 21:21:43 -05:00
2018-01-11 21:21:43 -05:00
2016-09-07 11:05:58 -07:00
2018-01-09 14:25:33 -08:00
2017-07-31 13:16:46 -07:00
2016-10-28 11:06:54 -07:00
2018-01-11 21:21:43 -05:00
2017-12-18 17:41:53 +01:00
2017-12-18 17:41:53 +01:00
2017-07-31 13:16:46 -07:00
2018-01-11 21:21:43 -05:00
2017-07-31 13:16:46 -07:00
2017-12-18 17:07:48 +01:00
2017-07-31 13:16:46 -07:00
2017-10-19 11:09:29 -07:00
2018-01-11 21:21:43 -05:00
2018-01-11 21:21:43 -05:00
2017-07-31 13:16:46 -07:00
2018-01-11 21:21:43 -05:00
2018-01-11 21:21:43 -05:00
2017-08-18 17:09:27 -07:00
2017-08-18 17:09:27 -07:00
2017-08-18 17:09:27 -07:00
2017-08-18 17:09:27 -07:00
2018-01-11 21:21:43 -05:00
2018-01-11 21:21:43 -05:00
2017-11-03 01:46:58 +01:00
2017-12-18 17:22:25 +01:00
2018-01-11 21:21:43 -05:00
2016-06-27 10:23:37 -07:00
2017-07-18 12:09:26 +08:00
2018-01-11 21:21:43 -05:00
2016-10-06 22:48:53 -03:00
2016-09-07 11:05:58 -07:00
2018-01-11 21:21:43 -05:00
2017-07-31 13:16:46 -07:00
2017-09-12 12:09:59 -04:00
2018-01-11 21:21:43 -05:00
2018-01-11 21:21:43 -05:00
2017-12-06 13:19:47 -08:00
2018-01-11 21:21:43 -05:00
2017-07-31 13:16:46 -07:00
2016-12-27 21:46:52 +08:00
2017-07-31 13:16:46 -07:00
2017-12-18 17:41:53 +01:00
2017-12-18 17:41:53 +01:00
2017-07-31 13:16:46 -07:00
2017-12-18 17:41:53 +01:00
2018-01-11 21:21:43 -05:00
2016-09-16 11:56:15 -07:00
2017-10-24 15:39:34 -04:00
2018-01-11 21:21:43 -05:00
2017-09-06 12:05:19 -04:00
2017-09-06 12:05:19 -04:00
2017-12-18 17:22:25 +01:00
2017-12-18 17:22:25 +01:00
2018-01-11 21:21:43 -05:00
2017-07-03 13:13:09 -07:00
2017-12-18 17:41:53 +01:00
2018-01-11 21:21:43 -05:00
2017-05-16 15:11:39 -07:00
2017-06-07 11:45:33 -04:00