• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

ialopezg / corejs / #5

03 Nov 2023 08:38PM UTC coverage: 42.153% (-47.5%) from 89.623%
#5

push

ialopezg
feat: add microservice feature

10 of 84 branches covered (0.0%)

Branch coverage included in aggregate %.

49 of 77 new or added lines in 20 files covered. (63.64%)

155 existing lines in 21 files now uncovered.

221 of 464 relevant lines covered (47.63%)

0.51 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

30.0
/src/errors/handler.ts
1
import { LoggerService } from '../common';
1✔
2
import { RuntimeException } from './exceptions';
1✔
3

4
/**
5
 * Handles error type objects and resolve them according its behaviour.
6
 */
7
export class ExceptionHandler {
1✔
8
  private logger: LoggerService;
9

10
  /**
11
   * Handle given error object.
12
   *
13
   * @param exception Error object.
14
   */
15
  public handle(exception: Error | RuntimeException): void {
16
    this.logger = new LoggerService(ExceptionHandler.name);
×
17

18
    if (!(exception instanceof RuntimeException)) {
×
UNCOV
19
      this.logger.error(exception.message, exception.stack);
×
20

21
      return;
×
22
    }
23

UNCOV
24
    this.logger.error(exception.getMessage(), exception.stack);
×
25
  }
26
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc