github.com/kata-containers/runtime@v0.0.0-20210505125100-04f29832a923/virtcontainers/pkg/types/errors.go (about)

     1  // Copyright (c) 2017 Intel Corporation
     2  //
     3  // SPDX-License-Identifier: Apache-2.0
     4  //
     5  
     6  package types
     7  
     8  import (
     9  	"errors"
    10  )
    11  
    12  // common error objects used for argument checking
    13  var (
    14  	ErrNeedSandbox       = errors.New("Sandbox must be specified")
    15  	ErrNeedSandboxID     = errors.New("Sandbox ID cannot be empty")
    16  	ErrNeedContainerID   = errors.New("Container ID cannot be empty")
    17  	ErrNeedState         = errors.New("State cannot be empty")
    18  	ErrNoSuchContainer   = errors.New("Container does not exist")
    19  	ErrInvalidConfigType = errors.New("Invalid config type")
    20  )