MCPcopy Create free account
hub / github.com/buke/quickjs-go / Exception

Method Exception

context.go:1261–1266  ·  view source on GitHub ↗

Exception returns a context's exception value.

()

Source from the content-addressed store, hash-verified

1259
1260// Exception returns a context's exception value.
1261func (ctx *Context) Exception() error {
1262 if !ctx.hasValidRef() || !ctx.HasException() {
1263 return nil
1264 }
1265 return ctx.exceptionError()
1266}
1267
1268// Loop runs the context's event loop.
1269func (ctx *Context) Loop() {

Calls 3

hasValidRefMethod · 0.95
HasExceptionMethod · 0.95
exceptionErrorMethod · 0.95