blockly > ConnectionChecker > getErrorMessage
ConnectionChecker.getErrorMessage() 方法
可將連線錯誤代碼轉換為字串的輔助方法。
Signature:
getErrorMessage(errorCode: number, a: Connection | null, b: Connection | null): string;
參數
參數 | 類型 | 說明 |
---|---|---|
errorCode | 號碼 | 錯誤代碼。 |
a | Connection | 空值 | 其中一個正在檢查的連線。 |
b | Connection | 空值 | 正在檢查的兩個連線的第二個。 |
傳回:
字串
開發人員可讀取的錯誤字串。