-
Notifications
You must be signed in to change notification settings - Fork 204
/
errors.go
21 lines (14 loc) · 983 Bytes
/
errors.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package provider
import "errors"
// ErrTypeAssertionFailed signals that a value for a metric is not an accepted one
var ErrTypeAssertionFailed = errors.New("type assertion is not possible")
// ErrInvalidAddressLength signals that an invalid length has been provided for the node's address
var ErrInvalidAddressLength = errors.New("invalid length for the node address")
// ErrInvalidFetchInterval signals that the duration in seconds between fetches is invalid
var ErrInvalidFetchInterval = errors.New("invalid fetch interval has been provided")
// ErrNilTermuiPresenter signals that a nil termui presenter has been provided
var ErrNilTermuiPresenter = errors.New("nil termui presenter")
// ErrNilChanNodeIsStarting signals that a nil channel for node starting has been provided
var ErrNilChanNodeIsStarting = errors.New("nil node starting channel")
// ErrEmptyNodeURL signals that an empty URL for the node has been provided
var ErrEmptyNodeURL = errors.New("empty node URL")