gosterror

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: May 27, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrTypeError = NewTypeError("TypeError")

Functions

func NewTypeError

func NewTypeError(msg string) error

Types

type TypeError

type TypeError struct{ Message string }

Represents a type that should become a TypeError in JavaScript. This is rarely created in Go code, but can happen through invalid combination of options. E.g., MutationObserver.Observe(options) will throw a TypeError if the options doesn't include one of ChildList, Attributes, or CharacterData.

func (TypeError) Error

func (e TypeError) Error() string

func (TypeError) Is

func (e TypeError) Is(err error) bool

Jump to

Keyboard shortcuts

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