mirror of
https://github.com/openharmony/ability_ability_runtime.git
synced 2026-08-24 22:21:36 -04:00
@@ -51,10 +51,10 @@ class BusinessError extends Error {
|
||||
|
||||
class ThrowInvalidParamError extends Error {
|
||||
constructor(msg) {
|
||||
let code = ERROR_CODE_INVALID_PARAM;
|
||||
this.code = ERROR_CODE_INVALID_PARAM;
|
||||
let oriMsg = ERROR_MSG_INVALID_PARAM;
|
||||
super(code);
|
||||
this.msg = oriMsg + msg;
|
||||
let message = oriMsg + msg;
|
||||
super(message);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user