LMbQP‖Error-Handling Functions

Contents

# u4AgT‖Error-Handling Functions

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

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

## zHAeD‖CVErr Function

3B8u2‖Converts a string expression or numeric expression to a variant expression of the sub type "Error".

## 4oCiF‖Erl Function

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

## bUW3P‖Err Function

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

## AENEA‖Err Object [VBA]

RZpQL‖Use VBA Err object to raise or handle runtime errors.

## FDXnr‖IsError Function

yQg58‖Tests if a variable contains an error value.

## e9iSg‖Error Function

rMs2R‖Returns the error message that corresponds to a value or raises a given error context.

## jtcsB‖On Error GoTo ... Resume Statement

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

## zjXXC‖Resume Statement

AVhyb‖Resets error information and indicates what to execute next.

## PPqb2‖ScriptForge.Exception service

4X7Xk‖The Exception service is a collection of methods to assist in code debugging in Basic and Python scripts and in error handling in Basic scripts.

XeYa4‖In Basic scripts, when a run-time error occurs, the methods and properties of the Exception service help identify the error context and allow to handle it.

Please support us!