Skip to main content

Home > blockly > IConnectionChecker > getErrorMessage

IConnectionChecker.getErrorMessage() method

Helper method that translates a connection error code into a string.

Signature:

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

Parameters

ParameterTypeDescription
errorCodenumberThe error code.
aConnection | nullOne of the two connections being checked.
bConnection | nullThe second of the two connections being checked.

Returns:

string

A developer-readable error string.