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

একটি স্ট্রিং অথবা সংখ্যাসূচক এক্সপ্রেশনকে "Error" সাবটাইপের একটি ভেরিয়েন্ট এক্সপ্রেশনে রূপান্তর করে থাকে।

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.

Please support us!