-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patherrors.go
25 lines (19 loc) · 1.02 KB
/
errors.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package golog
import "fmt"
// ErrLvlMsgSameKey is an error token used to represent the
// situation where the given Configuration struct contains
// the 'LvlFieldName' and 'MsgFieldName' fields with the same value
var ErrLvlMsgSameKey = fmt.Errorf("the 'level' and 'message' keys cannot be equal")
// ErrNilErrorParser is an error token used to represent that the
// given ErrorParser is nil and if it's accepted, a nil pointer
// can happen
var ErrNilErrorParser = fmt.Errorf("the 'ErrorParser' cannot be nil")
// ErrNilWaitGroup is thrown by AsyncHandleLog when it receives
// a nil WaitGroup via the function argument
var ErrNilWaitGroup = fmt.Errorf("the 'WaitGroup' argument cannot be nil")
// ErrNilCtx is thrown by AsyncHandleLog when it receives
// a nil context via the function argument
var ErrNilCtx = fmt.Errorf("the 'context.Context' argument cannot be nil")
// ErrNilChan is thrown by AsyncHandleLog when it receives
// a nil channel via the function argument
var ErrNilChan = fmt.Errorf("the 'channel' argument cannot be nil")