github.com/devcamcar/cli@v0.0.0-20181107134215-706a05759d18/common/errors.go (about) 1 package common 2 3 // NotFoundError represents error string. 4 type NotFoundError struct { 5 S string 6 } 7 8 func (e *NotFoundError) Error() string { 9 return e.S 10 } 11 12 // NewNotFoundError returns a new error. 13 func NewNotFoundError(s string) *NotFoundError { 14 return &NotFoundError{S: s} 15 }