forked from chromedp/chromedp
-
Notifications
You must be signed in to change notification settings - Fork 1
/
errors.go
42 lines (30 loc) · 1.04 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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
package chromedp
// Error is a chromedp error.
type Error string
// Error satisfies the error interface.
func (err Error) Error() string {
return string(err)
}
// Error types.
const (
// ErrInvalidDimensions is the invalid dimensions error.
ErrInvalidDimensions Error = "invalid dimensions"
// ErrNoResults is the no results error.
ErrNoResults Error = "no results"
// ErrHasResults is the has results error.
ErrHasResults Error = "has results"
// ErrNotVisible is the not visible error.
ErrNotVisible Error = "not visible"
// ErrVisible is the visible error.
ErrVisible Error = "visible"
// ErrDisabled is the disabled error.
ErrDisabled Error = "disabled"
// ErrNotSelected is the not selected error.
ErrNotSelected Error = "not selected"
// ErrInvalidBoxModel is the invalid box model error.
ErrInvalidBoxModel Error = "invalid box model"
// ErrChannelClosed is the channel closed error.
ErrChannelClosed Error = "channel closed"
// ErrInvalidHandler is the invalid handler error.
ErrInvalidHandler Error = "invalid handler"
)