Documentation ¶
Overview ¶
Package errors contains error types specific to the Surf library.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AttributeNotFound ¶
type AttributeNotFound struct {
// contains filtered or unexported fields
}
AttributeNotFound represents a failed attempt to read an element attribute.
func NewAttributeNotFound ¶
func NewAttributeNotFound(msg string, a ...interface{}) AttributeNotFound
NewAttributeNotFound creates and returns a AttributeNotFound type.
type ElementNotFound ¶
type ElementNotFound struct {
// contains filtered or unexported fields
}
ElementNotFound represents a failed attempt to operate on a non-existent page element.
func NewElementNotFound ¶
func NewElementNotFound(msg string, a ...interface{}) ElementNotFound
NewElementNotFound creates and returns a ElementNotFound type.
type Error ¶
type Error struct {
// contains filtered or unexported fields
}
Error represents any generic error.
type InvalidFormValue ¶
type InvalidFormValue struct {
// contains filtered or unexported fields
}
InvalidFormValue represents a failed attempt to set a form value that is not valid.
func NewInvalidFormValue ¶
func NewInvalidFormValue(msg string, a ...interface{}) InvalidFormValue
NewInvalidFormValue creates and returns a InvalidFormValue type.
type LinkNotFound ¶
type LinkNotFound struct {
// contains filtered or unexported fields
}
LinkNotFound represents a failed attempt to follow a link on a page.
func NewLinkNotFound ¶
func NewLinkNotFound(msg string, a ...interface{}) LinkNotFound
NewLinkNotFound creates and returns a LinkNotFound type.
type Location ¶
type Location struct {
// contains filtered or unexported fields
}
Location represents a failed attempt to follow a Location header.
func NewLocation ¶
NewLocation creates and returns a Location type.
type PageNotFound ¶
type PageNotFound struct {
// contains filtered or unexported fields
}
PageNotFound represents a failed attempt to visit a page because the page does not exist.
func NewPageNotFound ¶
func NewPageNotFound(msg string, a ...interface{}) PageNotFound
NewPageNotFound creates and returns a NotFound type.
type PageNotLoaded ¶
type PageNotLoaded struct {
// contains filtered or unexported fields
}
PageNotLoaded represents a failed attempt to operate on a non-loaded page.
func NewPageNotLoaded ¶
func NewPageNotLoaded(msg string, a ...interface{}) PageNotLoaded
NewPageNotLoaded creates and returns a PageNotLoaded type.