-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patherrors.go
More file actions
18 lines (16 loc) · 788 Bytes
/
errors.go
File metadata and controls
18 lines (16 loc) · 788 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package go_concurrent_logger
import (
"errors"
)
var (
ErrNilSendFunction = errors.New("send function cannot be nil")
ErrNilCloseFunction = errors.New("close function cannot be nil")
ErrLoggerClosed = errors.New("logger is closed")
ErrNilLogger = errors.New("logger cannot be nil")
ErrLoggerAlreadyRunning = errors.New("logger is already running")
ErrEmptyFilePath = errors.New("file path cannot be empty")
ErrInvalidChannelBufferSize = errors.New("channel buffer size must be greater than zero")
ErrInvalidFileBufferSize = errors.New("file buffer size must be greater than zero")
ErrEmptyTag = errors.New("tag cannot be empty")
ErrLoggerNotRunning = errors.New("logger is not running")
)