User Tools

Site Tools


el:thowerror

Differences

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

Link to this comparison view

el:thowerror [2016/01/01 22:40] (current)
Line 1: Line 1:
 +===== ThrowError =====
  
 +==== Format ====
 +**throwerror** ( //integer// )\\
 +**throwerror** //integer//
 +
 +==== Description ====
 +Cause a runtime error to occour. ​ These errors may be trapped with the [[Onerror|Onerror]] statement.
 +
 +==== Example ====
 +
 +<​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>​
 +==== See Also ====
 +[[Errorcodes|Error Codes]], [[Lasterror|Lasterror]],​ [[Lasterrorextra|Lasterrorextra]],​ [[Lasterrorline|Lasterrorline]],​ [[Lasterrormessage|Lasterrormessage]],​ [[Offerror|Offerror]],​ [[Onerror|Onerror]]
 +
 +==== New To Version ==== 
 +0.9.6.75
el/thowerror.txt ยท Last modified: 2016/01/01 22:40 (external edit)