jserror

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	//ErrNotImplemented ErrNotImplemented error
	ErrNotImplemented = errors.New("Browser not implemented Error")
	ErrNotAnError     = errors.New("Object is not Error")
)

Functions

func GetInterface

func GetInterface() js.Value

GetInterface get the Error interface

Types

type JSError

type JSError struct {
	baseobject.BaseObject
}

JSError JSError struct

func New

func New(values ...interface{}) (JSError, error)

func NewFromJSObject

func NewFromJSObject(obj js.Value) (JSError, error)

func (JSError) JSError_

func (e JSError) JSError_() JSError

func (JSError) Message

func (j JSError) Message() (string, error)

func (JSError) Name

func (j JSError) Name() (string, error)

func (JSError) SetMessage

func (j JSError) SetMessage(value string) error

func (JSError) SetName

func (j JSError) SetName(value string) error

func (JSError) Stack

func (j JSError) Stack() (string, error)

type JSErrorFrom

type JSErrorFrom interface {
	JSError_() JSError
}

Jump to

Keyboard shortcuts

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