This shows you the differences between two versions of the page.
pt:throwerror [2016/01/01 22:48] |
pt:throwerror [2020/02/28 10:46] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ===== ThrowError ===== | ||
+ | ==== Formato ==== | ||
+ | **throwerror** ( //número inteiro// )\\ | ||
+ | **throwerror** //número inteiro// | ||
+ | |||
+ | ==== Description ==== | ||
+ | Causa um erro de execussão. | ||
+ | |||
+ | ==== Exemplo ==== | ||
+ | |||
+ | < | ||
+ | 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 | ||
+ | </ | ||
+ | ==== Ver também ==== | ||
+ | [[Errorcodes|Error Codes]], [[Lasterror|Lasterror]], | ||
+ | |||
+ | ==== Introduzido ==== | ||
+ | 0.9.6.75 |