Exception returns a context's exception value.
()
| 1259 | |
| 1260 | // Exception returns a context's exception value. |
| 1261 | func (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. |
| 1269 | func (ctx *Context) Loop() { |