You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
boundary/internal/errors/kind.go

21 lines
358 B

package errors
// Kind specifies the kind of error (unknown, parameter, integrity, etc).
type Kind uint32
const (
Other Kind = iota
Parameter
Integrity
Search
)
func (e Kind) String() string {
return map[Kind]string{
Other: "unknown",
Parameter: "parameter violation",
Integrity: "integrity violation",
Search: "search issue",
}[e]
}