-
Notifications
You must be signed in to change notification settings - Fork 10
/
errors.go
26 lines (24 loc) · 1.35 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
26
package scrapemate
import "errors"
var (
// ErrorNoJobProvider returned when you do not set a job provider in initialization
ErrorNoJobProvider = errors.New("no job provider set")
// ErroExitSignal is returned when scrapemate exits because of a system interrupt
ErrorExitSignal = errors.New("exit signal received")
// ErrorNoLogger returned when you try to initialize it with a nil logger
ErrorNoLogger = errors.New("no logger set")
// ErrorNoContext returned when you try to initialized it with a nil context
ErrorNoContext = errors.New("no context set")
// ErrorConcurrency returned when you try to initialize it with concurrency <1
ErrorConcurrency = errors.New("concurrency must be greater than 0")
// ErrorNoHTMLFetcher returned when you try to initialize with a nil httpFetcher
ErrorNoHTMLFetcher = errors.New("no http fetcher set")
// ErrorNoHTMLParser returned when you try to initialized with a nil HtmlParser
ErrorNoHTMLParser = errors.New("no html parser set")
// ErrorNoCacher returned when you try to initialized with a nil Cacher
ErrorNoCacher = errors.New("no cacher set")
// ErrorNoCsvCapable returned when you try to write a csv file without a csv capable Data
ErrorNotCsvCapable = errors.New("not csv capable")
// ErrInactivityTimeout returned when the system exits because of inactivity
ErrInactivityTimeout = errors.New("inactivity timeout")
)