7 lines
582 B
TypeScript
7 lines
582 B
TypeScript
import { BaseEntityDict } from "oak-domain";
|
|
import { AsyncContext } from "oak-domain/lib/store/AsyncRowStore";
|
|
import { EntityDict, OakException } from "oak-domain/lib/types";
|
|
export type InternalErrorType = 'aspect' | 'trigger' | 'watcher' | 'timer' | 'checkpoint';
|
|
export type InternalErrorHandler<ED extends EntityDict & BaseEntityDict, Cxt extends AsyncContext<ED>> = (ctx: Cxt, type: InternalErrorType, message: string, err: Error, oakException?: OakException<ED>) => Promise<void>;
|
|
export type ExceptionPublisher = (type: string, message: string, err: any) => Promise<void>;
|