This shows you the differences between two versions of the page.
en:throwerror [2016/05/23 19:20] admin |
en:throwerror [2020/02/28 10:46] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== ThrowError (Statement) ===== | ||
- | ==== Format ==== | ||
- | **throwerror** // | ||
- | **throwerror** ( // | ||
- | |||
- | |||
- | ==== Description ==== | ||
- | Cause a runtime error to occour. | ||
- | |||
- | ==== Example ==== | ||
- | |||
- | < | ||
- | onerror errortrap | ||
- | print " | ||
- | throwerror 99 | ||
- | print "after error" | ||
- | end | ||
- | |||
- | errortrap: | ||
- | print "error " + lasterror + " happened" | ||
- | return | ||
- | </ | ||
- | will display\\ | ||
- | < | ||
- | before error | ||
- | error 99 happened | ||
- | after error | ||
- | </ | ||
- | ==== See Also ==== | ||
- | {{page> | ||
- | |||
- | ==== History ==== | ||
- | |0.9.6.75|New To Version| | ||
- | |1.99.99.33|Removed the ability to use a subroutine in an onerror trap.| |