aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/github.com/rs/xid/error.go
blob: ea2537493bef8ec38e168729cd08c8a7bb5f2cc6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
package xid

const (
	// ErrInvalidID is returned when trying to unmarshal an invalid ID.
	ErrInvalidID strErr = "xid: invalid ID"
)

// strErr allows declaring errors as constants.
type strErr string

func (err strErr) Error() string { return string(err) }