الصنف LoadError
في روبي
< Ruby
اذهب إلى التنقل
اذهب إلى البحث
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
يُطلق الاستثناء LoadError
عند فشل تحميل الملف المطلوب (شيفرة روبي، مكتبة ملحقة، ...إلخ.).
require 'this/file/does/not/exist'
الشيفرة أعلاه ستطلق الاستثناء التالي:
LoadError: no such file to load -- this/file/does/not/exist
تمثل الخاصية path
مسار الملف الذي فشلت روبي في تحميله.