User Tools

Site Tools


pt:throwerror

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

pt:throwerror [2016/01/01 22:48] (current)
Line 1: Line 1:
 +===== ThrowError =====
  
 +==== Formato ====
 +**throwerror** ( //número inteiro// )\\
 +**throwerror** //número inteiro//
 +
 +==== Description ====
 +Causa um erro de execussão. ​ Estes erros podem ser interceptados com [[Onerror|Onerror]].
 +
 +==== Exemplo ====
 +
 +<​code>​
 +onerror errortrap
 +print "​before error"
 +throwerror 99
 +print "after error"
 +end
 +
 +subroutine errortrap()
 +print "error " + lasterror + " happened"​
 +end subroutine
 +</​code>​
 +will display\\
 +<​code>​
 +before error
 +error 99 happened
 +after error
 +</​code>​
 +==== Ver também ====
 +[[Errorcodes|Error Codes]], [[Lasterror|Lasterror]],​ [[Lasterrorextra|Lasterrorextra]],​ [[Lasterrorline|Lasterrorline]],​ [[Lasterrormessage|Lasterrormessage]],​ [[Offerror|Offerror]],​ [[Onerror|Onerror]]
 +
 +==== Introduzido ==== 
 +0.9.6.75
pt/throwerror.txt · Last modified: 2016/01/01 22:48 (external edit)