TimeoutError

Gets thrown when the timeout of the health check exceeds

  
class TimeoutError extends HealthCheckError {

  // inherited from terminus/lib/HealthCheckError
  constructor(message: string, causes: any)
  causes: any
  isHealthCheckError: true
}

Constructor

Initializes the error


constructor(timeout: number, cause: any)

Parameters

Option Type Description
timeout number

The given timeout in ms

cause any

The cause of the health check error