Error Handling Functions

FreeBASIC

Error Handling Functions
 
Statements and procedures that provide runtime error-handling capabilities.

Description

These statements and procedures provide ways of dealing with runtime errors. Specific modules, procedures and source code lines can be retrieved, and error handlers can be set up.

Determining Errors
Procedures that retrieve information about an error.
Handling Errors
Statements that allow handling of errors.

Determining Errors
Erl
Gets the line in source code where the error occurred.
Erfn
Gets the name of the function where the error occurred.
Ermn
Gets the name of the source file where the error occurred.
Err
Gets the error number of the last error that occurred.
Error
Generates an error using an error number.
Handling Errors
On Error
Sets a global error handler using a label.
On Local Error
Sets a local error handler using a label.
Resume
Resumes execution at the line where the error occurred.
Resume Next
Resumes execution at the line after where the error occurred.
 
See also