blockly > ConnectionChecker > getErrorMessage

ConnectionChecker.getErrorMessage() 方法

將連線錯誤代碼轉譯為字串的輔助方法。

Signature:

getErrorMessage(errorCode: number, a: Connection | null, b: Connection | null): string;

參數

參數 類型 說明
errorCode 數字 錯誤代碼。
a 連線 | 空值 所檢查的兩個連線中的其中一個。
b 連線 | 空值 檢查的兩個連線中的第二個連線。

傳回:

字串

開發人員可讀取的錯誤字串。