errors

package
v0.0.0-...-1f56ff5 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2026 License: MIT Imports: 2 Imported by: 2

Documentation

Index

Constants

View Source
const (
	ErrCodeInvalidArgType  = "ERR_INVALID_ARG_TYPE"
	ErrCodeInvalidArgValue = "ERR_INVALID_ARG_VALUE"
	ErrCodeInvalidThis     = "ERR_INVALID_THIS"
	ErrCodeMissingArgs     = "ERR_MISSING_ARGS"
	ErrCodeOutOfRange      = "ERR_OUT_OF_RANGE"
)

Variables

This section is empty.

Functions

func NewArgumentNotBigIntTypeError

func NewArgumentNotBigIntTypeError(r *goja.Runtime, name string) *goja.Object

func NewArgumentNotNumberTypeError

func NewArgumentNotNumberTypeError(r *goja.Runtime, name string) *goja.Object

func NewArgumentNotStringTypeError

func NewArgumentNotStringTypeError(r *goja.Runtime, name string) *goja.Object

func NewArgumentOutOfRangeError

func NewArgumentOutOfRangeError(r *goja.Runtime, name string, v any) *goja.Object

func NewError

func NewError(r *goja.Runtime, ctor *goja.Object, code string, args ...interface{}) *goja.Object

func NewNotCorrectTypeError

func NewNotCorrectTypeError(r *goja.Runtime, name, _type string) *goja.Object

func NewRangeError

func NewRangeError(r *goja.Runtime, code string, params ...interface{}) *goja.Object

func NewTypeError

func NewTypeError(r *goja.Runtime, code string, params ...interface{}) *goja.Object

Types

This section is empty.

Jump to

Keyboard shortcuts

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