exception中变量改了个名字

This commit is contained in:
Xu Chang 2025-01-21 13:52:50 +08:00
parent 918ab67db1
commit 558557a51d
6 changed files with 25 additions and 24 deletions

View File

@ -2,12 +2,12 @@ import { OakException, OpRecord } from 'oak-domain/lib/types';
import { EntityDict } from '../oak-app-domain/index';
export declare class ExternalPayUtilException<ED extends EntityDict> extends OakException<ED> {
reason: any;
constructor(reason: any, message?: string, namespace?: string, params?: Record<string, any>);
constructor(reason: any, message?: string, module?: string, params?: Record<string, any>);
getSerialData(): {
reason: any;
name: string;
message: string;
namespace: string | undefined;
module: string | undefined;
opRecords: OpRecord<ED>[];
tag1: string | undefined;
tag2: boolean | undefined;
@ -15,10 +15,10 @@ export declare class ExternalPayUtilException<ED extends EntityDict> extends Oak
};
}
export declare class RefundExceedMax<ED extends EntityDict> extends OakException<ED> {
constructor(message?: string, namespace?: string, params?: Record<string, any>);
constructor(message?: string, module?: string, params?: Record<string, any>);
}
export declare class PayUnRefundable<ED extends EntityDict> extends OakException<ED> {
constructor(message?: string, namespace?: string, params?: Record<string, any>);
constructor(message?: string, module?: string, params?: Record<string, any>);
}
export declare class StartPayFailure<ED extends EntityDict> extends OakException<ED> {
constructor(message: string);

View File

@ -2,8 +2,8 @@ import { OakException } from 'oak-domain/lib/types';
import makeDepedentException from './DependentExceptions';
export class ExternalPayUtilException extends OakException {
reason;
constructor(reason, message, namespace, params) {
super(message || 'error::pay.externalException', namespace || 'oak-pay-business', params);
constructor(reason, message, module, params) {
super(message || 'error::pay.externalException', module || 'oak-pay-business', params);
this.reason = reason;
}
getSerialData() {
@ -15,12 +15,12 @@ export class ExternalPayUtilException extends OakException {
}
}
export class RefundExceedMax extends OakException {
constructor(message, namespace, params) {
super(message || 'error::refund.create.exceedMax', namespace || 'oak-pay-business', params);
constructor(message, module, params) {
super(message || 'error::refund.create.exceedMax', module || 'oak-pay-business', params);
}
}
export class PayUnRefundable extends OakException {
constructor(message, namespace, params) {
constructor(message, module, params) {
super(message || 'error::refund.create.payUnrefundable');
}
}

View File

@ -2,12 +2,12 @@ import { OakException, OpRecord } from 'oak-domain/lib/types';
import { EntityDict } from '../oak-app-domain/index';
export declare class ExternalPayUtilException<ED extends EntityDict> extends OakException<ED> {
reason: any;
constructor(reason: any, message?: string, namespace?: string, params?: Record<string, any>);
constructor(reason: any, message?: string, module?: string, params?: Record<string, any>);
getSerialData(): {
reason: any;
name: string;
message: string;
namespace: string | undefined;
module: string | undefined;
opRecords: OpRecord<ED>[];
tag1: string | undefined;
tag2: boolean | undefined;
@ -15,10 +15,10 @@ export declare class ExternalPayUtilException<ED extends EntityDict> extends Oak
};
}
export declare class RefundExceedMax<ED extends EntityDict> extends OakException<ED> {
constructor(message?: string, namespace?: string, params?: Record<string, any>);
constructor(message?: string, module?: string, params?: Record<string, any>);
}
export declare class PayUnRefundable<ED extends EntityDict> extends OakException<ED> {
constructor(message?: string, namespace?: string, params?: Record<string, any>);
constructor(message?: string, module?: string, params?: Record<string, any>);
}
export declare class StartPayFailure<ED extends EntityDict> extends OakException<ED> {
constructor(message: string);

View File

@ -6,8 +6,8 @@ const types_1 = require("oak-domain/lib/types");
const DependentExceptions_1 = tslib_1.__importDefault(require("./DependentExceptions"));
class ExternalPayUtilException extends types_1.OakException {
reason;
constructor(reason, message, namespace, params) {
super(message || 'error::pay.externalException', namespace || 'oak-pay-business', params);
constructor(reason, message, module, params) {
super(message || 'error::pay.externalException', module || 'oak-pay-business', params);
this.reason = reason;
}
getSerialData() {
@ -20,13 +20,13 @@ class ExternalPayUtilException extends types_1.OakException {
}
exports.ExternalPayUtilException = ExternalPayUtilException;
class RefundExceedMax extends types_1.OakException {
constructor(message, namespace, params) {
super(message || 'error::refund.create.exceedMax', namespace || 'oak-pay-business', params);
constructor(message, module, params) {
super(message || 'error::refund.create.exceedMax', module || 'oak-pay-business', params);
}
}
exports.RefundExceedMax = RefundExceedMax;
class PayUnRefundable extends types_1.OakException {
constructor(message, namespace, params) {
constructor(message, module, params) {
super(message || 'error::refund.create.payUnrefundable');
}
}

View File

@ -3,11 +3,12 @@
* by Xc 20230807
*/
// @ts-nocheck
import React from 'react';
import { EntityDict } from '../oak-app-domain';
import { TableProps, PaginationProps } from 'antd';
import { ReactComponentProps, ColumnProps, RowWithActions, OakExtraActionProps,
OakAbsAttrDef, onActionFnDef, ListButtonProps, OakAbsAttrUpsertDef, ColumnMapType } from 'oak-frontend-base';
import AbsFilterPanel from 'oak-frontend-base/es/components/filterPanel';

View File

@ -4,8 +4,8 @@ import makeDepedentException from './DependentExceptions';
export class ExternalPayUtilException<ED extends EntityDict> extends OakException<ED> {
reason: any;
constructor(reason: any, message?: string, namespace?: string, params?: Record<string, any>) {
super(message || 'error::pay.externalException', namespace || 'oak-pay-business', params);
constructor(reason: any, message?: string, module?: string, params?: Record<string, any>) {
super(message || 'error::pay.externalException', module || 'oak-pay-business', params);
this.reason = reason;
}
@ -19,13 +19,13 @@ export class ExternalPayUtilException<ED extends EntityDict> extends OakExceptio
}
export class RefundExceedMax<ED extends EntityDict> extends OakException<ED> {
constructor(message?: string, namespace?: string, params?: Record<string, any>) {
super(message || 'error::refund.create.exceedMax', namespace || 'oak-pay-business', params);
constructor(message?: string, module?: string, params?: Record<string, any>) {
super(message || 'error::refund.create.exceedMax', module || 'oak-pay-business', params);
}
}
export class PayUnRefundable<ED extends EntityDict> extends OakException<ED> {
constructor(message?: string, namespace?: string, params?: Record<string, any>) {
constructor(message?: string, module?: string, params?: Record<string, any>) {
super(message || 'error::refund.create.payUnrefundable');
}
}