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

mozilla / blurts-server / 6db3aa31-c382-4e92-a441-310181bb7aac

pending completion
6db3aa31-c382-4e92-a441-310181bb7aac

push

circleci

Vincent
Pretend HTMLElement.shadowRoot is always set

282 of 1629 branches covered (17.31%)

Branch coverage included in aggregate %.

1 of 1 new or added line in 1 file covered. (100.0%)

959 of 4374 relevant lines covered (21.93%)

3.65 hits per line

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

0.0
/src/utils/error.js
1
/* This Source Code Form is subject to the terms of the Mozilla Public
2
 * License, v. 2.0. If a copy of the MPL was not distributed with this
3
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
4

5
class UserInputError extends Error {
6
  /**
7
   * @param {[string?]} params
8
   */
9
  constructor (...params) {
10
    super(...params)
×
11
    this.statusCode = 400
×
12
  }
13
}
14

15
class UnauthorizedError extends Error {
16
  /**
17
   * @param {[string?]} params
18
   */
19
  constructor (...params) {
20
    super(...params)
×
21
    this.statusCode = 403
×
22
  }
23
}
24

25
class MethodNotAllowedError extends Error {
26
  /**
27
   * @param {[string?]} params
28
   */
29
  constructor (...params) {
30
    super(...params)
×
31
    this.statusCode = 405
×
32
  }
33
}
34

35
class RateLimitError extends Error {
36
  /**
37
   * @param {[string?]} params
38
   */
39
  constructor (...params) {
40
    super(...params)
×
41
    this.statusCode = 429
×
42
  }
43
}
44

45
export {
46
  UnauthorizedError,
47
  UserInputError,
48
  MethodNotAllowedError,
49
  RateLimitError
50
}
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