NTP-27557 | Adding constants for errors
This commit is contained in:
@@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user