LarkError extends the native Error class with a code property for programmatic error handling. All errors thrown or surfaced by the Lark SDK are instances of LarkError.
Properties
Error Codes
Handling Errors
With try/catch
With the error event
Connection-level errors are emitted via theonError event on the LarkDatabase instance.
Transaction-related codes (
condition_failed, max_retries_exceeded, write_tainted) indicate that the transaction could not commit. In most cases the SDK retries automatically, but if max_retries_exceeded is thrown, you may need to retry with different logic.
