Variable: ErrorCodes
ts
const ErrorCodes: object;Error codes raised by Zalo Kit itself, found on the code property of a rejected promise. Errors coming from the Zalo SDK keep the numeric Zalo error code as a string, e.g. "-7008".
Type Declaration
Example
ts
try {
await login();
} catch (e: any) {
if (e.code === ErrorCodes.ZALO_NOT_INSTALLED) {
// ask the user to install Zalo
}
}