errors

package
v0.0.30 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2025 License: MIT, MIT Imports: 2 Imported by: 0

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 added in v0.0.27

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

func NewArgumentNotNumberTypeError added in v0.0.27

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

func NewArgumentNotStringTypeError added in v0.0.27

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

func NewArgumentOutOfRangeError added in v0.0.27

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 added in v0.0.27

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

func NewRangeError added in v0.0.27

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.

Source Files

  • errors.go

Jump to

Keyboard shortcuts

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