Skip to content

Error Handling Functions

Paul Squires edited this page Oct 19, 2026 · 3 revisions

Home › Error Handling Functions › Error Handling Functions

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.

See also


Category: Error Handling Functions


Reproduced from the FreeBASIC Wiki Manual under the GNU Free Documentation License 1.3 — with no Invariant Sections, no Front-Cover Texts and no Back-Cover Texts. Copyright © the FreeBASIC project and wiki contributors. See License.

Clone this wiki locally