blockly > ConnectionChecker > getErrorMessage
ConnectionChecker.getErrorMessage() 方法
將連線錯誤代碼轉譯為字串的輔助方法。
Signature:
getErrorMessage(errorCode: number, a: Connection | null, b: Connection | null): string;
參數
參數 |
類型 |
說明 |
errorCode |
數字 |
錯誤代碼。 |
a |
連線 | 空值 |
所檢查的兩個連線中的其中一個。 |
b |
連線 | 空值 |
檢查的兩個連線中的第二個連線。 |
傳回:
字串
開發人員可讀取的錯誤字串。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-11-06 (世界標準時間)。
[null,null,["上次更新時間:2024-11-06 (世界標準時間)。"],[[["`ConnectionChecker.getErrorMessage()` translates a connection error code into a human-readable string for developers."],["It takes the error code and the two connections involved as input."],["The method returns a string explaining the connection error."]]],[]]