User Tools

Site Tools


en:errorcodesconstants

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
en:errorcodesconstants [2016/08/04 09:04]
admin
en:errorcodesconstants [2016/08/15 04:39]
admin
Line 95: Line 95:
 |65536+ERROR_INTEGERRANGE|WARNING_INTEGERRANGE|Number exceeds integer range (| |65536+ERROR_INTEGERRANGE|WARNING_INTEGERRANGE|Number exceeds integer range (|
  
-==== Example ==== 
  
-<code> 
-# test error trapping 
-onerror nicetrap 
-print 1 
-next haha 
-print 2 
-open 999, "bogus.file" 
-print "Runs Anyway" 
- 
-# test error trapping off and fail at any error (default) 
-offerror 
-print 3 
-next hoho 
-print "never get here" 
- 
-end 
- 
-nicetrap: 
-# this is the nice error handler 
-print "trap and run - error on line " + lasterrorline + " - error number " + lasterror + " message " + lasterrormessage + " (" + lasterrorextra + ")" 
-return 
-</code> 
-will display\\ 
-<code> 
-1 
-trap and run - error on line 4 - error number 4 message Next without FOR () 
-2 
-trap and run - error on line 6 - error number 5 message Invalid File Number () 
-Runs Anyway 
-3 
-ERROR on line 12: Next without FOR  
-</code> 
- 
-==== See Also ==== 
-{{page>en:start#Error Handling&noheader}} 
- 
-==== History ====  
-|1.99.99.9|Corrected and updated list of errorcodes| 
-|1.99.99.53|Corrected and updated list of errorcodes| 
  
en/errorcodesconstants.txt · Last modified: 2020/02/28 10:46 (external edit)