Definitionپێناسە
An object that a program raises (throws) when something goes wrong while it runs. It stops normal execution unless the code catches it, with try/except in Python or try/catch in PHP, Java and C#.
ئۆبجێکتێکە کە لە کاتی جێبەجێبووندا دروستی دەکات کاتێک شتێک هەڵە دەچێت. جێبەجێکردنی ئاسایی دەوەستێنێت مەگەر کۆدەکە بیگرێت: بە try/except لە Pythonـدا یان try/catch لە PHP، Java و C#ـدا.
Exampleنموونە
The user sees a friendly message instead of the raw error.
بەکارهێنەر لە جیاتی هەڵە خاوەکە پەیامێکی ئاسان دەبینێت.
try {
$conn = new mysqli("localhost", "root", "wrong", "shop");
} catch (mysqli_sql_exception $e) {
echo "Could not connect. Please try later.";
}Other Kurdish renderings in useوەرگێڕانە کوردییەکانی تر
ئێکسێپشن، ئیستیسنا، هەڵاوێردەکە، هەڵاوێردەکان، هەڵاوێردەیەک، هەڵاوێردەی، هەڵاوێردەکانی
Note on the Kurdish termتێبینی دەربارەی زاراوە کوردییەکە
هەڵاوێردە is the ordinary Kurdish word for "exception"; many programmers keep the loanword ئێکسێپشن.
Related termsزاراوە پەیوەندیدارەکان
Videosڤیدیۆکان
What exceptions are in PHP 8, how to throw them, and how try, catch and finally work.
لە 8دا چین، چۆن بە throw فڕێیان دەدەیت و try، catch و finally چۆن کار دەکەن.
Learn more inزیاتر فێربە لە
- Connecting PHP to MySQLپەیوەندیکردنی PHP بە MySQL
- Securing Data in PHP and MySQLپاراستنی دراوە لە PHP و MySQL
- Handling Errors with try and exceptمامەڵەکردن لەگەڵ هەڵاوێردە بە try و except
- Errors and Debuggingهەڵەکان و کرمەکوژی
- Getting Data from the Internet: HTTP and JSONوەرگرتنی دراوە لە ئینتەرنێت: HTTP و JSON
- Reading and Writing Filesخوێندنەوە و نووسینی فایلەکان
- Futures, async and await in DartFuture،
asyncوawaitلە Dartـدا - Opening Links and Other Apps with url_launcherکردنەوەی بەستەرەکان و ئەپەکانی تر بە url_launcher
- Building Tic-Tac-Toe in Pythonدروستکردنی یاریی ئێکسوئۆ بە Python
- Inserting and selecting data with PHPزیادکردن و هەڵبژاردنی زانیاری بە PHP
- PHP Superglobalsسووپەرگلۆباڵەکانی PHP
- Cookiesکووکییەکان
- A Login System with Sessionsسیستەمی چوونەژوورەوە بە سێشن
- Organising an MVVM Project: Folders, Services and get_itڕێکخستنی پڕۆژەیەکی MVVM: فۆڵدەرەکان، خزمەتگوزارییەکان و get_it
- Building a CRUD Application with PHP and MySQLدروستکردنی بەرنامەیەکی CRUD بە PHP و MySQL
- Firebase and Cloud FirestoreFirebase و Cloud Firestore
- State Management with Providerبەڕێوەبردنی دۆخ بە Provider
- FutureProvider and StreamProviderFutureProvider و StreamProvider
- Reasoning with a Knowledge Base in Pythonبیرکردنەوە بە بنکەیەکی زانین لە Pythonـدا
- Input and Outputنێوخستە و دەرخستە
- Lists: Creating and Indexingلیستەکان: دروستکردن و ئیندێکسەکان
- Stacks: Last In, First Outستاکەکان: دوایین هاتوو، یەکەم دەرچوو
- Project: A Word-Scramble Gameپڕۆژیلە: یاریی پیتە تێکەڵەکان
- Conditional Statements: if, else, elseif and switchڕستە مەرجییەکان: if و else و elseif و switch
- Including Files: include and requireهاوردەکردنی فایل: include و require
- Web APIs and JSONAPIـی وێب و JSON
- Course review and practiceپێداچوونەوە و ڕاهێنانی کۆرسەکە
- Text, Images and Iconsدەق، وێنە و ئایکۆنەکان
- Text Fields and Formsخانەکانی دەق و فۆرمەکان