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

devpow112 / codify-images / 4851918122

01 May 2023 02:21PM UTC coverage: 100.0%. Remained the same
4851918122

push

github

Devon Powell
chore(deps-dev): bump markdownlint-cli from 0.33.0 to 0.34.0

62 of 62 branches covered (100.0%)

Branch coverage included in aggregate %.

185 of 185 relevant lines covered (100.0%)

113.38 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
}
1✔
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
}
1✔
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
}
1✔
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