blockly > IConnectionChecker > getErrorMessage
طريقة IConnectionChecker.getErrorMessage()
طريقة مساعد تترجم رمز خطأ في الاتصال إلى سلسلة
Signature:
getErrorMessage(errorCode: number, a: Connection | null, b: Connection | null): string;
المعلمات
المعلمة |
النوع |
الوصف |
errorCode |
الرقم |
رمز الخطأ. |
a |
الاتصال | فارغ |
أحد الاتصالين اللذين يتم فحصهما. |
b |
الاتصال | فارغ |
والثاني من الاتصالين اللذين يتم فحصهما. |
المرتجعات:
سلسلة
سلسلة خطأ يمكن للمطوّر قراءتها
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2024-10-14 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2024-10-14 (حسب التوقيت العالمي المتفَّق عليه)"],[[["The `getErrorMessage` method within the `IConnectionChecker` interface translates a connection error code into a human-readable string."],["This method accepts an error code, and two optional `Connection` objects representing the connections being checked, to generate a descriptive error message."],["Developers can utilize the returned string to understand and handle connection errors during block interactions."]]],[]]