// NewElementNotFound creates and returns a ElementNotFound type.
358722
func NewElementNotFound(msg string, a ...interface{}) ElementNotFound {
	msg = fmt.Sprintf(msg, a...)
	return ElementNotFound{
		error: errors.New(msg),
	}
}
708184
func (v ElementBuildingVisitor) CreateListElement(item *listItem) (apply.Element, error) {
	meta, err := getFieldMeta(item.GetMeta(), item.Name)
	if err != nil {
		return nil, err
	}
	if meta.GetFieldMergeType() == apply.MergeStrategy {
		return v.mergeListElement(meta, item)
	}
	return v.replaceListElement(meta, item)
}
301683
func NewNotFoundError(field *FieldPath, value interface{}) *Error {
	return &Error{ErrorTypeNotFound, field.String(), value, ""}
}
739474
func IsNotFound(e error) bool {
	if e == NotFound {
		return true
	}
	if e, ok := e.(*URLError); ok && e.Err == NotFound {
		return true
	}
	return false
}
1348815
func (builder *FetchSetCommandBuilder) WithNotFoundOk(notFoundOk bool) *FetchSetCommandBuilder {
	builder.protobuf.NotfoundOk = &notFoundOk
	return builder
}
26957
func (r *Router) notFound(w http.ResponseWriter, req *http.Request) {
	if r.root().notFoundHandler != nil {
		r.root().notFoundHandler.ServeHTTP(w, req)
	} else {
		http.NotFound(w, req)
	}
}
1075401
func (c *Controller) NotFound(msg string, objs ...interface{}) Result {
	finalText := msg
	if len(objs) > 0 {
		finalText = fmt.Sprintf(msg, objs...)
	}
	c.Response.Status = http.StatusNotFound
	return c.RenderError(&Error{
		Title:       "Not Found",
		Description: finalText,
	})
}
1301799
func (ctx *Context) NotFound(message ...string) {
	if len(message) == 0 {
		ctx.Abort(http.StatusNotFound, http.StatusText(http.StatusNotFound))
		return
	}
	ctx.Abort(http.StatusNotFound, message[0])
}
1016202
func NewNotFoundErrorWithKey(entity string, key, value string) NotFoundError {
	return NotFoundError{entity: entity, key: key, value: value}
}
1209073
func IsNotFound(err error) bool {
	_, ok := getImplementer(err).(ErrNotFound)
	return ok
}
1024976
func IsNotFound(e error) bool {
	type nf interface {
		IsNotFoundError() bool
	}
	err := Unwrap(e)
	_, ok := err.(nf)
	if !ok {
		return os.IsNotExist(err)
	}
	return ok
}
974070
func NotFound(message string, args ...interface{}) error {
	return WrapWithMessage(&NotFoundError{
		Message: fmt.Sprintf(message, args...),
	}, message, args...)
}
670256
func (r *Router) NotFound(notFoundHandler func(*Context)) {
	r.initRouter()
	r.router.NotFound = notFoundHandler
}
858912
func IsNotFoundError(err error) bool {
	es := err.Error()
	if strings.Contains(es, "does not exist") {
		// set with the same name already exists
		// xref: https://github.com/Olipro/ipset/blob/master/lib/errcode.c#L32-L33
		return true
	}
	if strings.Contains(es, "element is missing") {
		// entry is missing from the set
		// xref: https://github.com/Olipro/ipset/blob/master/lib/parse.c#L1904
		// https://github.com/Olipro/ipset/blob/master/lib/parse.c#L1925
		return true
	}
	return false
}
1226045
func NewElementWriter(aw AttrPrinter, sw StylePrinter, tw TextPrinter) *ElementWriter {
	return &ElementWriter{
		attrWriter:  aw,
		styleWriter: sw,
		text:        tw,
	}
}
1283072
func NewNotFoundHandler(manifest map[string]string) *NotFound {
	return &NotFound{
		Templates: NotFoundTemplates{
			NotFound:            "errors/404",
			InternalServerError: "errors/500",
		},
		AssetsManifest: manifest,
	}
}
592122
func (s *BatchGetJobsOutput) SetJobsNotFound(v []*string) *BatchGetJobsOutput {
	s.JobsNotFound = v
	return s
}