1 |
| |
2 |
| |
3 |
| |
4 |
| |
5 |
| |
6 |
| |
7 |
| package jtr.remote.test; |
8 |
| |
9 |
| |
10 |
| |
11 |
| |
12 |
| |
13 |
| |
14 |
| |
15 |
| public class DistributionError { |
16 |
| |
17 |
| |
18 |
| |
19 |
| |
20 |
| |
21 |
| |
22 |
0
| public DistributionError(NodeInfo node, Throwable cause) {
|
23 |
0
| this.node = node;
|
24 |
0
| this.cause = cause;
|
25 |
| } |
26 |
| |
27 |
0
| public NodeInfo getNode() {
|
28 |
0
| return node;
|
29 |
| } |
30 |
| |
31 |
0
| public Throwable getCause() {
|
32 |
0
| return cause;
|
33 |
| } |
34 |
| |
35 |
0
| public String toString() {
|
36 |
0
| String msg = "NODE: "+node+"\n"+
|
37 |
| "CAUSE: "+cause; |
38 |
0
| return msg;
|
39 |
| } |
40 |
| |
41 |
| private NodeInfo node; |
42 |
| private Throwable cause; |
43 |
| } |