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

box / box-java-sdk / #4852

16 Sep 2025 01:01PM UTC coverage: 37.127% (-0.002%) from 37.129%
#4852

push

github

web-flow
feat: Add `withProxy` method to `BoxClient` (box/box-codegen#831) (#1425)

0 of 3 new or added lines in 1 file covered. (0.0%)

18 existing lines in 7 files now uncovered.

18455 of 49708 relevant lines covered (37.13%)

0.37 hits per line

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

63.33
/src/main/java/com/box/sdkgen/box/errors/BoxSDKError.java
1
package com.box.sdkgen.box.errors;
2

3
public class BoxSDKError extends RuntimeException {
4

5
  public final String message;
6

7
  public String timestamp;
8

9
  public Exception error;
10

11
  public String name;
12

13
  public BoxSDKError(String message) {
14
    super(message);
1✔
15
    this.message = message;
1✔
16
    this.name = "BoxSDKError";
1✔
17
  }
1✔
18

19
  public BoxSDKError(String message, Exception error) {
20
    super(message, error);
1✔
21
    this.message = message;
1✔
22
    this.error = error;
1✔
23
    this.name = "BoxSDKError";
1✔
24
  }
1✔
25

26
  protected BoxSDKError(Builder builder) {
27
    super(builder.message, builder.error);
1✔
28
    this.message = builder.message;
1✔
29
    this.timestamp = builder.timestamp;
1✔
30
    this.error = builder.error;
1✔
31
    this.name = builder.name;
1✔
32
  }
1✔
33

34
  public String getMessage() {
UNCOV
35
    return message;
×
36
  }
37

38
  public String getTimestamp() {
39
    return timestamp;
×
40
  }
41

42
  public Object getError() {
43
    return error;
×
44
  }
45

46
  public String getName() {
47
    return name;
×
48
  }
49

50
  public static class Builder {
51

52
    protected final String message;
53

54
    protected String timestamp;
55

56
    protected Exception error;
57

58
    protected String name;
59

60
    public Builder(String message) {
1✔
61
      this.message = message;
1✔
62
      this.name = "BoxSDKError";
1✔
63
    }
1✔
64

65
    public Builder timestamp(String timestamp) {
66
      this.timestamp = timestamp;
×
67
      return this;
×
68
    }
69

70
    public Builder error(Exception error) {
71
      this.error = error;
×
72
      return this;
×
73
    }
74

75
    public Builder name(String name) {
76
      this.name = name;
×
77
      return this;
×
78
    }
79

80
    public BoxSDKError build() {
81
      return new BoxSDKError(this);
×
82
    }
83
  }
84
}
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