oak-pay-business/lib/types/Exception.d.ts

17 lines
650 B
TypeScript

import { OakException, OpRecord } from 'oak-domain/lib/types';
import { EntityDict } from '../oak-app-domain/index';
export declare class ExternalPrePayException<ED extends EntityDict> extends OakException<ED> {
reason: any;
constructor(reason: any, message?: string);
getSerialData(): {
reason: any;
name: string;
message: string;
opRecords: OpRecord<ED>[];
};
}
export declare class RefundExceedMax<ED extends EntityDict> extends OakException<ED> {
constructor(message?: string);
}
export declare function makeException<ED extends EntityDict>(msg: string | object): OakException<ED> | undefined;