This shows you the differences between two versions of the page.
en:thowerror [2016/01/01 22:42] 127.0.0.1 external edit |
en:thowerror [2020/02/28 10:46] |
||
---|---|---|---|
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 |