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

felleslosninger / einnsyn-backend / 21714400041

05 Feb 2026 02:00PM UTC coverage: 83.688%. Remained the same
21714400041

Pull #586

github

web-flow
Merge cbe18d38c into 4bc184f9d
Pull Request #586: EIN-Codegen

2444 of 3344 branches covered (73.09%)

Branch coverage included in aggregate %.

7453 of 8482 relevant lines covered (87.87%)

3.67 hits per line

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

0.0
src/main/java/no/einnsyn/backend/common/exceptions/models/NetworkException.java
1
// Auto-generated from our API specification
2
// https://github.com/felleslosninger/einnsyn-api-spec
3

4
package no.einnsyn.backend.common.exceptions.models;
5

6
import lombok.Getter;
7
import no.einnsyn.backend.common.responses.models.ErrorResponse;
8

9
@Getter
10
public class NetworkException extends EInnsynException {
11
  protected String baseUrl;
12

13
  public NetworkException(String message, Throwable cause, String baseUrl) {
14
    super(message, cause, "networkError");
×
15
    this.baseUrl = baseUrl;
×
16
  }
×
17

18
  public NetworkException(String message) {
19
    super(message, "networkError");
×
20
  }
×
21

22
  public ErrorResponse toClientResponse() {
23
    return new ClientResponse(this.getMessage(), this.getBaseUrl());
×
24
  }
25

26
  @Getter
27
  public static class ClientResponse implements ErrorResponse {
28
    protected final String type = "networkError";
×
29

30
    protected String message;
31

32
    protected String baseUrl;
33

34
    public ClientResponse(String message, String baseUrl) {
35
      super();
×
36
      this.message = message;
×
37
      this.baseUrl = baseUrl;
×
38
    }
×
39
  }
40
}
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