export type CommonApplicationErrorKind = | 'not_found' | 'forbidden' | 'conflict' | 'validation' | 'unknown' | string; export interface IApplicationError extends Error { readonly type: 'application'; readonly context: string; readonly kind: K; readonly details?: D; }