github.com/chenbh/concourse/v6@v6.4.2/worker/runtime/errors.go (about)

     1  package runtime
     2  
     3  import "errors"
     4  
     5  // ErrInvalidInput indicates a bad input was supplied.
     6  //
     7  type ErrInvalidInput string
     8  
     9  func (e ErrInvalidInput) Error() string {
    10  	return string(e)
    11  }
    12  
    13  // ErrNotFound indicates that something wasn't found.
    14  //
    15  type ErrNotFound string
    16  
    17  func (e ErrNotFound) Error() string {
    18  	return "not found: " + string(e)
    19  }
    20  
    21  var (
    22  	// ErrGracePeriodTimeout indicates that the grace period for a graceful
    23  	// termination has been reached.
    24  	//
    25  	ErrGracePeriodTimeout = errors.New("grace period timeout")
    26  
    27  	// ErrNotImplemented indicates that a method is not implemented.
    28  	//
    29  	ErrNotImplemented = errors.New("not implemented")
    30  )