chromedp/errors.go

43 lines
1.0 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.
func (e Error) Error() string {
return string(e)
}
// 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"
)