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

box / box-java-sdk / #5925

17 Dec 2025 05:03PM UTC coverage: 35.453% (-0.1%) from 35.558%
#5925

push

github

web-flow
fix: add taxonomy to Metadata Field (read) definition (box/box-openapi#572) (#1644)

Co-authored-by: box-sdk-build <box-sdk-build@box.com>

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

62 existing lines in 13 files now uncovered.

18901 of 53313 relevant lines covered (35.45%)

0.35 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) {
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);
×
21
    this.message = message;
×
22
    this.error = error;
×
23
    this.name = "BoxSDKError";
×
24
  }
×
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

© 2025 Coveralls, Inc