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

ecamp / hal-json-vuex / 14422895817

12 Apr 2025 07:59PM UTC coverage: 93.432%. Remained the same
14422895817

push

github

usu
3.0.0-alpha.10

160 of 183 branches covered (87.43%)

Branch coverage included in aggregate %.

281 of 289 relevant lines covered (97.23%)

930.78 hits per line

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

100.0
/src/ServerException.ts
1
import type { AxiosError, AxiosResponse } from 'axios'
2

3
/**
4
 * Error class for returning server exceptions (attaches Axios response object to error)
5
 */
6
export default class ServerException extends Error {
7
    public response: AxiosResponse
8

9
    /**
10
     * @param response Axios reponse object
11
     * @param message  Error message to prepend to the response message
12
     * @param error
13
     */
14
    public constructor (response: AxiosResponse, message: string, error: AxiosError) {
15
      super(message + ' (status ' + response.status + '): ' + error.message)
75✔
16
      this.name = 'ServerException'
75✔
17
      this.response = response
75✔
18
    }
19
}
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