github.com/iron-io/functions@v0.0.0-20180820112432-d59d7d1c40b2/fn/common/errors.go (about)

     1  package common
     2  
     3  type NotFoundError struct {
     4  	S string
     5  }
     6  
     7  func (e *NotFoundError) Error() string {
     8  	return e.S
     9  }
    10  
    11  func newNotFoundError(s string) *NotFoundError {
    12  	return &NotFoundError{S: s}
    13  }