2017-09-22 09:52:41 -04:00
|
|
|
package libcontainerd
|
|
|
|
|
2017-11-28 23:09:37 -05:00
|
|
|
import (
|
|
|
|
"errors"
|
2017-09-22 09:52:41 -04:00
|
|
|
|
2017-11-28 23:09:37 -05:00
|
|
|
"github.com/docker/docker/api/errdefs"
|
|
|
|
)
|
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)) }
|