@nest-js/error-manager
Version:
NestJS error manager library
12 lines (11 loc) • 388 B
TypeScript
export declare class ErrorHtmlService {
private readonly errorConfig;
constructor(errorConfig: {
descriptions: Record<string, string>;
solutions: Record<string, string[]>;
});
generateErrorHtml(errorType: string, errorDescription?: string): string;
private formatErrorTypeToTitle;
private getDefaultDescription;
private getPossibleSolutions;
}