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

devpow112 / codify-images / 4732947240

18 Apr 2023 01:27PM UTC coverage: 100.0%. Remained the same
4732947240

push

github

Devon Powell
build(deps): bump coverallsapp/github-action from 2.1.0 to 2.1.1

66 of 66 branches covered (100.0%)

Branch coverage included in aggregate %.

178 of 178 relevant lines covered (100.0%)

117.8 hits per line

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

100.0
/src/errors.js
1
class CodifyError extends Error {
2✔
2
  constructor(message, code, exitCode = 1) {
6✔
3
    super(message);
6✔
4

5
    this.code = `codifyImages.${code}`;
6✔
6
    this.exitCode = exitCode;
6✔
7
    this.nestedError = undefined;
6✔
8
  }
9
}
10

11
export class UnsupportedTypeError extends CodifyError {
12
  constructor(extension) {
13
    super(
2✔
14
      `Type '${extension}' is not a supported image format`,
15
      'unsupportedTypeError'
16
    );
17

18
    Error.captureStackTrace(this, this.constructor);
2✔
19

20
    this.name = this.constructor.name;
2✔
21
  }
22
}
23

24
export class InvalidPathError extends CodifyError {
25
  constructor(path) {
26
    super(`Path '${path}' is not a valid path`, 'invalidPathError');
2✔
27

28
    Error.captureStackTrace(this, this.constructor);
2✔
29

30
    this.name = this.constructor.name;
2✔
31
  }
32
}
33

34
export class InvalidSvgModeError extends CodifyError {
35
  constructor(mode) {
36
    super(`SVG mode '${mode}' is not a valid mode`, 'invalidSvgModeError');
2✔
37

38
    Error.captureStackTrace(this, this.constructor);
2✔
39

40
    this.name = this.constructor.name;
2✔
41
  }
42
}
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

© 2025 Coveralls, Inc