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 (
|
2019-04-09 08:11:14 +00:00
|
|
|
// ErrInvalidWebsocketMessage is the invalid websocket message.
|
|
|
|
ErrInvalidWebsocketMessage Error = "invalid websocket message"
|
|
|
|
|
2017-12-27 02:30:28 +00:00
|
|
|
// 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
|
|
|
)
|