2017-02-12 07:08:40 +00:00
|
|
|
package chromedp
|
|
|
|
|
2017-12-27 02:30:28 +00:00
|
|
|
// Error is a chromedp error.
|
|
|
|
type Error string
|
|
|
|
|
|
|
|
// Error satisfies the error interface.
|
2018-05-18 22:03:47 +00:00
|
|
|
func (err Error) Error() string {
|
|
|
|
return string(err)
|
2017-12-27 02:30:28 +00:00
|
|
|
}
|
2017-02-12 07:08:40 +00:00
|
|
|
|
|
|
|
// Error types.
|
2017-12-27 02:30:28 +00:00
|
|
|
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"
|
2017-02-12 07:08:40 +00:00
|
|
|
|
2017-12-27 02:30:28 +00:00
|
|
|
// ErrNotVisible is the not visible error.
|
|
|
|
ErrNotVisible Error = "not visible"
|
2017-02-12 07:08:40 +00:00
|
|
|
|
2017-12-27 02:30:28 +00:00
|
|
|
// ErrVisible is the visible error.
|
|
|
|
ErrVisible Error = "visible"
|
2017-02-12 07:08:40 +00:00
|
|
|
|
2017-12-27 02:30:28 +00:00
|
|
|
// ErrDisabled is the disabled error.
|
|
|
|
ErrDisabled Error = "disabled"
|
2017-02-12 07:08:40 +00:00
|
|
|
|
2017-12-27 02:30:28 +00:00
|
|
|
// ErrNotSelected is the not selected error.
|
|
|
|
ErrNotSelected Error = "not selected"
|
2017-02-12 07:08:40 +00:00
|
|
|
|
2017-12-27 02:30:28 +00:00
|
|
|
// ErrInvalidBoxModel is the invalid box model error.
|
|
|
|
ErrInvalidBoxModel Error = "invalid box model"
|
2017-02-12 07:08:40 +00:00
|
|
|
|
2017-12-27 02:30:28 +00:00
|
|
|
// ErrChannelClosed is the channel closed error.
|
|
|
|
ErrChannelClosed Error = "channel closed"
|
2017-02-12 07:08:40 +00:00
|
|
|
|
2017-12-27 02:30:28 +00:00
|
|
|
// ErrInvalidHandler is the invalid handler error.
|
|
|
|
ErrInvalidHandler Error = "invalid handler"
|
2019-03-05 13:14:50 +00:00
|
|
|
|
|
|
|
// ErrInvalidContext is the invalid context error.
|
|
|
|
ErrInvalidContext Error = "invalid context"
|
2017-02-12 07:08:40 +00:00
|
|
|
)
|