1
2
3
4
5
6
7
8
9
10
11
12
13
14 package ch.qos.logback.classic.spi;
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37 public class ThrowableProxyVOBuilder {
38
39 private final ThrowableProxyVO throwableProxyVO;
40
41 public ThrowableProxyVOBuilder() {
42 this.throwableProxyVO = new ThrowableProxyVO();
43 }
44
45 public ThrowableProxyVOBuilder setClassName(String className) {
46 throwableProxyVO.setClassName(className);
47 return this;
48 }
49
50 public ThrowableProxyVOBuilder setMessage(String message) {
51 throwableProxyVO.setMessage(message);
52 return this;
53 }
54
55 public ThrowableProxyVOBuilder setOverridingMessage(String overridingMessage) {
56 throwableProxyVO.setOverridingMessage(overridingMessage);
57 return this;
58 }
59
60 public ThrowableProxyVOBuilder setCommonFramesCount(int commonFramesCount) {
61 throwableProxyVO.setCommonFramesCount(commonFramesCount);
62 return this;
63 }
64
65 public ThrowableProxyVOBuilder setStackTraceElementProxyArray(
66 StackTraceElementProxy[] stackTraceElementProxyArray) {
67 throwableProxyVO.setStackTraceElementProxyArray(stackTraceElementProxyArray);
68 return this;
69 }
70
71 public ThrowableProxyVOBuilder setCause(IThrowableProxy cause) {
72 throwableProxyVO.setCause(cause);
73 return this;
74 }
75
76 public ThrowableProxyVOBuilder setSuppressed(IThrowableProxy[] suppressed) {
77 throwableProxyVO.setSuppressed(suppressed);
78 return this;
79 }
80
81 public ThrowableProxyVOBuilder setCyclic(boolean cyclic) {
82 throwableProxyVO.setCyclic(cyclic);
83 return this;
84 }
85
86
87
88
89
90
91 public ThrowableProxyVO build() {
92 return throwableProxyVO;
93 }
94 }