Web API package for use when compling Go to WASM
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

29 lines
661 B

// Code generated DO NOT EDIT
// domexception.go
package dom
import "syscall/js"
type DOMExceptionIFace interface {
GetCode() int
GetMessage() string
GetName() string
}
type DOMException struct {
Value
}
func jsValueToDOMException(val js.Value) DOMException { return DOMException{Value: Value{Value: val}} }
func (v Value) AsDOMException() DOMException { return DOMException{Value: v} }
func (d DOMException) GetCode() int {
val := d.Get("code")
return val.Int()
}
func (d DOMException) GetMessage() string {
val := d.Get("message")
return val.String()
}
func (d DOMException) GetName() string {
val := d.Get("name")
return val.String()
}