2018-02-05 21:05:59 +00:00
|
|
|
package libcontainerd // import "github.com/docker/docker/libcontainerd"
|
2017-09-22 13:52:41 +00:00
|
|
|
|
2017-11-29 04:09:37 +00:00
|
|
|
import (
|
|
|
|
"errors"
|
2017-09-22 13:52:41 +00:00
|
|
|
|
2018-01-11 19:53:06 +00:00
|
|
|
"github.com/docker/docker/errdefs"
|
2017-11-29 04:09:37 +00:00
|
|
|
)
|
2017-09-22 13:52:41 +00:00
|
|
|
|
2017-11-29 04:09:37 +00:00
|
|
|
func newNotFoundError(err string) error { return errdefs.NotFound(errors.New(err)) }
|
2017-09-22 13:52:41 +00:00
|
|
|
|
2017-11-29 04:09:37 +00:00
|
|
|
func newInvalidParameterError(err string) error { return errdefs.InvalidParameter(errors.New(err)) }
|
2017-09-22 13:52:41 +00:00
|
|
|
|
2017-11-29 04:09:37 +00:00
|
|
|
func newConflictError(err string) error { return errdefs.Conflict(errors.New(err)) }
|