* During execution of guarded functions we will capture the first error which * we will rethrow to be handled by the top level error handler.
()
| 314 | */ |
| 315 | |
| 316 | function rethrowCaughtError() { |
| 317 | if (hasRethrowError) { |
| 318 | var error = rethrowError; |
| 319 | hasRethrowError = false; |
| 320 | rethrowError = null; |
| 321 | throw error; |
| 322 | } |
| 323 | } |
| 324 | function hasCaughtError() { |
| 325 | return hasError; |
| 326 | } |