File: errors_before_13.go

package info (click to toggle)
golang-github-thejerf-suture 4.0.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 260 kB
  • sloc: sh: 24; makefile: 2
file content (17 lines) | stat: -rw-r--r-- 471 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// +build !go1.13

package suture

import "errors"

func isErr(err error, target error) bool {
	return err == target
}

// ErrDoNotRestart can be returned by a service to voluntarily not
// be restarted.
var ErrDoNotRestart = errors.New("service should not be restarted")

// ErrTerminateSupervisorTree can can be returned by a service to terminate the
// entire supervision tree above it as well.
var ErrTerminateSupervisorTree = errors.New("tree should be terminated")