errors

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 29, 2017 License: MIT Imports: 2 Imported by: 0

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.

func New

func New(msg string, a ...interface{}) Error

New creates and returns an Error type.

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

func NewLocation(msg string, a ...interface{}) Location

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL