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