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

box / box-java-sdk / #4743

06 Aug 2025 12:44PM UTC coverage: 38.165% (-0.1%) from 38.272%
#4743

push

github

web-flow
chore: Adjust `github` workflows for legacy repos (box/box-codegen#772) (#1331)

18979 of 49729 relevant lines covered (38.16%)

0.38 hits per line

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

46.67
/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) {
1✔
14
    this.message = message;
1✔
15
    this.name = "BoxSDKError";
1✔
16
  }
1✔
17

18
  public BoxSDKError(String message, Exception error) {
×
19
    this.message = message;
×
20
    this.error = error;
×
21
    this.name = "BoxSDKError";
×
22
  }
×
23

24
  protected BoxSDKError(Builder builder) {
1✔
25
    this.message = builder.message;
1✔
26
    this.timestamp = builder.timestamp;
1✔
27
    this.error = builder.error;
1✔
28
    this.name = builder.name;
1✔
29
  }
1✔
30

31
  public String getMessage() {
32
    return message;
×
33
  }
34

35
  public String getTimestamp() {
36
    return timestamp;
×
37
  }
38

39
  public Object getError() {
40
    return error;
×
41
  }
42

43
  public String getName() {
44
    return name;
×
45
  }
46

47
  public static class Builder {
48

49
    protected final String message;
50

51
    protected String timestamp;
52

53
    protected Exception error;
54

55
    protected String name;
56

57
    public Builder(String message) {
1✔
58
      this.message = message;
1✔
59
      this.name = "BoxSDKError";
1✔
60
    }
1✔
61

62
    public Builder timestamp(String timestamp) {
63
      this.timestamp = timestamp;
×
64
      return this;
×
65
    }
66

67
    public Builder error(Exception error) {
68
      this.error = error;
×
69
      return this;
×
70
    }
71

72
    public Builder name(String name) {
73
      this.name = name;
×
74
      return this;
×
75
    }
76

77
    public BoxSDKError build() {
78
      return new BoxSDKError(this);
×
79
    }
80
  }
81
}
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