freeCodeCamp/guide/arabic/java/throw-keyword/index.md

16 lines
615 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

---
title: Throw
localeTitle: يرمي
---
## يرمي
يتم استخدام الكلمة الأساسية throw Java لرمي استثناء بشكل صريح.يمكنك التخلص من الاستثناء المحدد أو غير المحظوظ في java بإلقاء الكلمة الرئيسية. يتم استخدام الكلمة الأساسية throw لإلقاء الاستثناء المخصص.
**_مثال:_**
`throw new ArithmeticException("/ by zero not permitted");
`
##### المزيد من الموارد
[المهوسون المهوسون](https://www.geeksforgeeks.org/throw-throws-java/)