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
Previous revision
en:errorcodesconstants [2016/08/04 09:04]
admin
en:errorcodesconstants [2020/02/28 10:46] (current)
Line 1: Line 1:
-===== Error Codes ===== 
- 
-==== Description ==== 
-This is a list of runtime error code numbers returned by the [[lasterror|LastError]] function and text error messages returned by the [[Lasterrormessage|LastErrorMessage]] function. 
  
 == Non Trappable Errors == == Non Trappable Errors ==
Line 92: Line 88:
 |65536+ERROR_WAVNODURATION|WARNING_WAVNODURATION|Duration is not available for media file| |65536+ERROR_WAVNODURATION|WARNING_WAVNODURATION|Duration is not available for media file|
 |65536+ERROR_VARNOTASSIGNED|WARNING_VARNOTASSIGNED|Variable %VARNAME% has not been assigned a value| |65536+ERROR_VARNOTASSIGNED|WARNING_VARNOTASSIGNED|Variable %VARNAME% has not been assigned a value|
-|65536+ERROR_LONGRANGE|WARNING_LONGRANGE|Number exceeds long integer range (| +|65536+ERROR_LONGRANGE|WARNING_LONGRANGE|Number exceeds long integer range ()
-|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> +
-+
-trap and run - error on line 4 - error number 4 message Next without FOR () +
-+
-trap and run - error on line 6 - error number 5 message Invalid File Number () +
-Runs Anyway +
-+
-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.1470323048.txt.gz · Last modified: 2020/02/28 10:46 (external edit)