Mobile Locker JavaScript SDK
    Preparing search index...

    Variable GeneralErrorCodeConst

    GeneralErrorCode: {
        NotConnected: "not_connected";
        RequestTimeout: "request_timeout";
        ServerError: "server_error";
    } = ...

    Error codes shared across all SDK domains. Use these as named constants rather than raw strings.

    Type Declaration

    • ReadonlyNotConnected: "not_connected"

      The device has no internet connection.

    • ReadonlyRequestTimeout: "request_timeout"

      The request exceeded the configured timeout.

    • ReadonlyServerError: "server_error"

      The Mobile Locker server or an upstream API returned an unexpected error.

    if (err.code === GeneralErrorCode.NotConnected) showOfflineBanner()