@yolo-croket-dev/core 1.9.3-jun.1 → 1.9.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -13,5 +13,5 @@ export declare class UnAuthorized extends HttpException implements MsaException
|
|
|
13
13
|
errAction: ErrAction | null;
|
|
14
14
|
/** 에러 옵션 */
|
|
15
15
|
errOption?: MsaExceptionOption;
|
|
16
|
-
constructor(errMessage?: string, errAction?: ErrAction, errOption?: MsaExceptionOption);
|
|
16
|
+
constructor(errType: string, errMessage?: string, errAction?: ErrAction, errOption?: MsaExceptionOption);
|
|
17
17
|
}
|
|
@@ -8,7 +8,7 @@ const common_1 = require("@nestjs/common");
|
|
|
8
8
|
* ErrAction X
|
|
9
9
|
*/
|
|
10
10
|
class UnAuthorized extends common_1.HttpException {
|
|
11
|
-
constructor(errMessage, errAction, errOption) {
|
|
11
|
+
constructor(errType, errMessage, errAction, errOption) {
|
|
12
12
|
super('USER_AUTHENTICATION_FAIL', common_1.HttpStatus.UNAUTHORIZED);
|
|
13
13
|
// legacy
|
|
14
14
|
this.subMessage = null;
|
|
@@ -18,7 +18,7 @@ class UnAuthorized extends common_1.HttpException {
|
|
|
18
18
|
this.errAction = null;
|
|
19
19
|
this.subMessage = errMessage || null;
|
|
20
20
|
// new
|
|
21
|
-
this.errType = 'USER_AUTHENTICATION_FAIL';
|
|
21
|
+
this.errType = errType || 'USER_AUTHENTICATION_FAIL';
|
|
22
22
|
this.errMessage = errMessage || null;
|
|
23
23
|
this.errAction = errAction || null;
|
|
24
24
|
this.errOption = errOption;
|
|
@@ -30,7 +30,6 @@ async function AmqpHandler(client, messagePattern, payload) {
|
|
|
30
30
|
* 다른 서비스에서 이미 처리가 될 수 있음
|
|
31
31
|
* */
|
|
32
32
|
(0, _1.reWriteFileValue)((_a = data === null || data === void 0 ? void 0 : data.arg) === null || _a === void 0 ? void 0 : _a.file);
|
|
33
|
-
console.log('data@@@@@@@', data);
|
|
34
33
|
const errInfo = data.errInfo ? data.errInfo : {
|
|
35
34
|
message: data.errMessage,
|
|
36
35
|
type: data.errType,
|
|
@@ -207,7 +207,6 @@ let RPCInterceptor = class RPCInterceptor {
|
|
|
207
207
|
const noAck = message.fields.routingKey.includes('ASYNC');
|
|
208
208
|
let localErrorProcessor = async (err) => {
|
|
209
209
|
var _a;
|
|
210
|
-
console.log('err@@@@@@@ rpc가 있다고?', err);
|
|
211
210
|
const errMsg = err.response ? err.response : err.message;
|
|
212
211
|
const status = err.status ? err.status : 500;
|
|
213
212
|
const errType = err.errType;
|