Add incorrect error type

This commit is contained in:
Dustin Pianalto 2021-11-17 23:54:56 -09:00
parent 3fdc109b1e
commit cf0fb5b111

View File

@ -9,6 +9,7 @@ const (
Other Kind = iota // Unknown error or something that doesn't fit other categories Other Kind = iota // Unknown error or something that doesn't fit other categories
Internal // Internal error that should not be shown to user Internal // Internal error that should not be shown to user
Invalid // Operation is not permitted for this type of item Invalid // Operation is not permitted for this type of item
Incorrect // Incorrect configuration or values
Permission // Permission denied Permission // Permission denied
IO // External IO error IO // External IO error
Conflict // The item already exists Conflict // The item already exists
@ -24,6 +25,8 @@ func (k Kind) String() string {
return "internal error" return "internal error"
case Invalid: case Invalid:
return "invalid operation" return "invalid operation"
case Incorrect:
return "incorrect configuration"
case Permission: case Permission:
return "permission denied" return "permission denied"
case IO: case IO: