๐Ÿ“ฆ nestjs / terminus

๐Ÿ“„ health-check.error.ts ยท 19 lines
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19/**
 * @deprecated
 * **This class has been deprecated and will be removed in the next major release.**
 * Instead utilise the `HealthIndicatorService` to indicate the health of your health indicator.
 *
 * @see {@link https://docs.nestjs.com/migration-guide#terminus-module|Migration Guide}
 */
export class HealthCheckError extends Error {
  causes: any;
  isHealthCheckError = true;
  constructor(message: string, causes: any) {
    super(message);

    this.causes = causes;

    Error.captureStackTrace(this, this.constructor);
  }
}