Welcome to mirror list, hosted at ThFree Co, Russian Federation.

errors.go « vfs « internal - gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 32b861925cede167a190ea996934d71c252d50da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package vfs

import (
	"fmt"
)

type ErrNotExist struct {
	Inner error
}

func (e ErrNotExist) Error() string {
	return fmt.Sprintf("not exist: %q", e.Inner)
}

func IsNotExist(err error) bool {
	_, ok := err.(*ErrNotExist)
	return ok
}