1 package org.duniter.core.exception;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32 public class TechnicalException extends RuntimeException{
33
34 private static final long serialVersionUID = -6715624222174163366L;
35
36 private int code = -1;
37
38 public int getCode() {
39 return code;
40 }
41
42 public void setCode(int code) {
43 this.code = code;
44 }
45
46 public TechnicalException() {
47 super();
48 }
49
50 public TechnicalException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
51 super(message, cause, enableSuppression, writableStackTrace);
52 }
53
54 public TechnicalException(String message, Throwable cause) {
55 super(message, cause);
56 }
57
58 public TechnicalException(String message) {
59 super(message);
60 }
61
62 public TechnicalException(Throwable cause) {
63 super(cause);
64 }
65
66 }