UNPKG

@logistically/events

Version:

A production-ready event-driven architecture library for NestJS with Redis Streams, comprehensive batching, reliable consumption, and enterprise-grade features.

22 lines (21 loc) 846 B
export interface TranslationContext { key: string; params?: Record<string, any>; } export declare class ContextException extends Error { readonly translationContext: TranslationContext; readonly statusCode: number; constructor(translationContext: TranslationContext, statusCode?: number); } export declare class ContextBadRequestException extends ContextException { constructor(translationContext: TranslationContext); } export declare class ContextUnauthorizedException extends ContextException { constructor(translationContext: TranslationContext); } export declare class ContextNotFoundException extends ContextException { constructor(translationContext: TranslationContext); } export declare class ContextForbiddenException extends ContextException { constructor(translationContext: TranslationContext); }