This shows you the differences between two versions of the page.
el:thowerror [2016/01/01 22:40] |
el:thowerror [2020/02/28 10:46] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ===== ThrowError ===== | ||
+ | ==== Format ==== | ||
+ | **throwerror** ( //integer// )\\ | ||
+ | **throwerror** //integer// | ||
+ | |||
+ | ==== Description ==== | ||
+ | Cause a runtime error to occour. | ||
+ | |||
+ | ==== Example ==== | ||
+ | |||
+ | < | ||
+ | onerror errortrap | ||
+ | print " | ||
+ | throwerror 99 | ||
+ | print "after error" | ||
+ | end | ||
+ | |||
+ | subroutine errortrap() | ||
+ | print "error " + lasterror + " happened" | ||
+ | end subroutine | ||
+ | </ | ||
+ | will display\\ | ||
+ | < | ||
+ | before error | ||
+ | error 99 happened | ||
+ | after error | ||
+ | </ | ||
+ | ==== See Also ==== | ||
+ | [[Errorcodes|Error Codes]], [[Lasterror|Lasterror]], | ||
+ | |||
+ | ==== New To Version ==== | ||
+ | 0.9.6.75 |