This shows you the differences between two versions of the page.
en:onerror [2016/01/01 22:41] 127.0.0.1 external edit |
en:onerror [2020/02/28 10:46] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== OnError (Statement) ===== | ||
- | |||
- | ==== Format ==== | ||
- | **onerror** //label// | ||
- | |||
- | ==== Description ==== | ||
- | Causes the [[GosubReturn|Gosub]] at //label// to be executed or [[Subroutine|Subroutine]] to be called when an runtime error occurs. | ||
- | |||
- | You may not execute an OnError statement inside a [[Try|Try / Catch / End Try]] statement. | ||
- | |||
- | ==== Example ==== | ||
- | |||
- | See example of usage on [[Errorcodes|Error Codes]] and [[ThrowError|ThrowError]] pages. | ||
- | |||
- | ==== See Also ==== | ||
- | {{page> | ||
- | |||
- | ==== History ==== | ||
- | |0.9.6z|New To Version| | ||