summaryrefslogtreecommitdiff
path: root/errors/errors.go
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2020-10-27 15:16:55 +0300
committerValery Piashchynski <[email protected]>2020-10-27 15:16:55 +0300
commitd199ef71b9644afbbba064c317cd0991be1c2443 (patch)
treef777eb90f10ca0e7dbc46227fc76c61f02111946 /errors/errors.go
parent91cf918b30938129609323ded53e190385e019a6 (diff)
Supervised pool
Diffstat (limited to 'errors/errors.go')
-rwxr-xr-xerrors/errors.go15
1 files changed, 6 insertions, 9 deletions
diff --git a/errors/errors.go b/errors/errors.go
index def408d8..c9455367 100755
--- a/errors/errors.go
+++ b/errors/errors.go
@@ -39,21 +39,18 @@ type Kind uint8
// Kinds of errors.
const (
Undefined Kind = iota // Undefined error.
- Network
- Other
- Test
+ ErrWatcherStopped
+ TimeOut
)
func (k Kind) String() string {
switch k {
case Undefined:
return "UNDEF"
- case Network:
- return "Network error"
- case Other:
- return "Other"
- case Test:
- return "Test"
+ case ErrWatcherStopped:
+ return "Watcher stopped"
+ case TimeOut:
+ return "TimedOut"
}
return "unknown error kind"