NTP-27557 | Adding constants for errors

This commit is contained in:
vivek bhadola
2025-02-04 20:43:47 +05:30
parent bbbc578b11
commit c7d2b89caa

View File

@@ -137,7 +137,7 @@ class AmeyoAdapter implements IAdapter {
});
} catch (error) {
console.error('Error initializing SIP stack:', error);
this.handleError('SIP_INIT_ERROR', error);
this.handleError(ErrorType.SIP_INIT_ERROR, error);
}
};
@@ -191,7 +191,7 @@ class AmeyoAdapter implements IAdapter {
} catch (error) {
console.error('Error handling message:', error);
this.handleError('MESSAGE_HANDLING_ERROR', error);
this.handleError(ErrorType.MESSAGE_HANDLING_ERROR, error);
}
};