chromedp/errors.go

46 lines
1.1 KiB
Go
Raw Normal View History

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
}
// 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-12-27 02:30:28 +00:00
// ErrNotVisible is the not visible error.
ErrNotVisible Error = "not visible"
2017-12-27 02:30:28 +00:00
// ErrVisible is the visible error.
ErrVisible Error = "visible"
2017-12-27 02:30:28 +00:00
// ErrDisabled is the disabled error.
ErrDisabled Error = "disabled"
2017-12-27 02:30:28 +00:00
// ErrNotSelected is the not selected error.
ErrNotSelected Error = "not selected"
2017-12-27 02:30:28 +00:00
// ErrInvalidBoxModel is the invalid box model error.
ErrInvalidBoxModel Error = "invalid box model"
2017-12-27 02:30:28 +00:00
// ErrChannelClosed is the channel closed error.
ErrChannelClosed Error = "channel closed"
2017-12-27 02:30:28 +00:00
// ErrInvalidHandler is the invalid handler error.
ErrInvalidHandler Error = "invalid handler"
// ErrInvalidContext is the invalid context error.
ErrInvalidContext Error = "invalid context"
)