الفرق بين المراجعتين ل"Ruby/RegexpError"

من موسوعة حسوب
اذهب إلى التنقل اذهب إلى البحث
ط (مراجعة وتدقيق.)
 
سطر 1: سطر 1:
يُطلق الاستثناء <code>RangeError</code> عند إعطاء تعبير نمطي غير صالح.
+
يُطلق الاستثناء <code>RangeError</code> عند إعطاء [[Ruby/Regexp|تعبير نمطي]] غير صالح. إذا نفَّذنا السطر البرمجي التالي:<syntaxhighlight lang="ruby">
 
 
الشيفرة التالية:<syntaxhighlight lang="ruby">
 
 
Regexp.new("?")
 
Regexp.new("?")
  
</syntaxhighlight>ستطلق الاستثناء:<syntaxhighlight lang="ruby">
+
</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: صفحة الصنف <code>RegexpError</code> في روبي}}</noinclude>
+
{{DISPLAYTITLE:الصنف <code>RegexpError</code> في روبي}}</noinclude>
 
[[تصنيف: Ruby]]
 
[[تصنيف: Ruby]]
[[تصنيف: Ruby RegexpError]]
+
[[تصنيف: Ruby Class]]
 
+
[[تصنيف: Ruby Error]]
 +
[[تصنيف: Ruby Regexp]]
 
== مصادر ==
 
== مصادر ==
*[http://ruby-doc.org/core-2.5.1/RegexpError.html قسم  الصنف RegexpError في توثيق روبي الرسمي.]
+
*[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: /?/

مصادر