Error-Handling Functions

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.

CVErr Function

सब प्रकार "त्रुटि" चल अभिव्यक्तिमा स्ट्रिङ अभिव्यक्ति वा सङ्ख्यात्मक अभिव्यक्ति रूपान्तरण गर्दछ ।

Erl Function

कार्यक्रम कार्यान्वयन गरिरहेको बेलामा त्रुटि आउने ठाउँमा रेखा नम्बर फर्काउनुहोस् ।

Err Function

कार्यक्रम कार्यान्वयन गरेको बेलामा त्रुटि परिभाषित गर्ने त्रुटि सङ्केत फर्काउँदछ ।

Err Object [VBA]

Use VBA Err object to raise or handle runtime errors.

IsError Function

त्रुटि मान चल समावेश छन् भने परिक्षण गर्दछ ।

Error Function

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

On Error GoTo ... Resume Statement

त्रुटि आएपछि त्रुटि-ह्यान्डेलिङ कार्यतालिका सक्षम हुन्छ, वा कार्यक्रम कार्यान्वयनलाई पुन: निरन्तरता दिन्छ ।

Resume Statement

Resets error information and indicates what to execute next.

ScriptForge.Exception service

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.

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.

कृपया हामीलाई समर्थन गर्नुहोस्!