الفرق بين المراجعتين ل"Ruby/RegexpError"
< Ruby
اذهب إلى التنقل
اذهب إلى البحث
جميل-بيلوني (نقاش | مساهمات) ط (مراجعة وتدقيق.) |
|||
سطر 1: | سطر 1: | ||
− | يُطلق الاستثناء <code>RangeError</code> عند إعطاء تعبير نمطي غير صالح. | + | يُطلق الاستثناء <code>RangeError</code> عند إعطاء [[Ruby/Regexp|تعبير نمطي]] غير صالح. إذا نفَّذنا السطر البرمجي التالي:<syntaxhighlight lang="ruby"> |
− | |||
− | |||
Regexp.new("?") | Regexp.new("?") | ||
− | </syntaxhighlight> | + | </syntaxhighlight>فسيُطلَق الاستثناء <code>RangeError</code> بالشكل التالي:<syntaxhighlight lang="text"> |
RegexpError: target of repeat operator is not specified: /?/ | RegexpError: target of repeat operator is not specified: /?/ | ||
</syntaxhighlight><noinclude> | </syntaxhighlight><noinclude> | ||
− | {{DISPLAYTITLE: | + | {{DISPLAYTITLE:الصنف <code>RegexpError</code> في روبي}}</noinclude> |
[[تصنيف: Ruby]] | [[تصنيف: Ruby]] | ||
− | [[تصنيف: Ruby | + | [[تصنيف: Ruby Class]] |
− | + | [[تصنيف: Ruby Error]] | |
+ | [[تصنيف: Ruby Regexp]] | ||
== مصادر == | == مصادر == | ||
− | *[http://ruby-doc.org/core-2.5.1/RegexpError.html | + | *[http://ruby-doc.org/core-2.5.1/RegexpError.html صفحة الصنف RegexpError في توثيق روبي الرسمي.] |
المراجعة الحالية بتاريخ 05:58، 4 ديسمبر 2018
يُطلق الاستثناء RangeError
عند إعطاء تعبير نمطي غير صالح. إذا نفَّذنا السطر البرمجي التالي:
Regexp.new("?")
فسيُطلَق الاستثناء RangeError
بالشكل التالي:
RegexpError: target of repeat operator is not specified: /?/