errors

package
Version: v0.0.0-...-382a46a Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2021 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.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL