// 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: JSValueToValue(val)} } func (v Value) AsDOMException() DOMException { return DOMException{Value: v} } func NewDOMException(args ...interface{}) DOMException { return DOMException{Value: JSValueToValue(js.Global().Get("DOMException").New(args...))} } 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() }