Efnisyfirlit
Atriðaskrá 🔎︎

# Fallaðgerðir til villumeðhöndlunar

Use the following statements and functions to define the way LibreOffice Basic reacts to run-time errors.

LibreOffice Basic offers several methods to prevent the termination of a program when a run-time error occurs.

## Erl Function

Returns the line number where an error occurred during program execution.

## Err Function

Returns an error code that identifies the error that occurred during program execution.

## Error Function

Returns the error message that corresponds to a given error code.

## On Error GoTo ... Resume Statement

Enables an error-handling routine after an error occurs, or resumes program execution.