Skip to content

Commit 518acde

Browse files
committed
0.7.6.5 (2021-09-12)
+ Added CodeException
1 parent 39d2fae commit 518acde

File tree

8 files changed

+85
-54
lines changed

8 files changed

+85
-54
lines changed

docgen/parameters.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"title" : "Jupiter (Fugerit Core A.P.I.)",
33
"name": "Jupiter",
4-
"version" : "0.7.6.4",
5-
"date" : "31/08/2021",
4+
"version" : "0.7.6.5",
5+
"date" : "12/09/2021",
66
"organization" : {
77
"name" : "Fugerit Org",
88
"url" : "https://www.fugerit.org"

docgen/release-notes.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
0.7.6.4 (2021-08-31)
1+
0.7.6.5 (2021-09-12)
2+
--------------------
3+
+ Added CodeException
4+
5+
0.7.6.4 (2021-08-31)
26
--------------------
37
+ Added ExHandler capabilities to MiniFilterChain
48
+ Added subprops utility

fj-core/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>org.fugerit.java</groupId>
99
<artifactId>fj-lib</artifactId>
10-
<version>0.7.6.4-jd1</version>
10+
<version>0.7.6.5</version>
1111
</parent>
1212

1313
<name>fj-core</name>

fj-core/src/main/java/org/fugerit/java/core/cfg/ConfigException.java

Lines changed: 20 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
*/
2121
package org.fugerit.java.core.cfg;
2222

23+
import org.fugerit.java.core.lang.ex.CodeException;
24+
2325
/**
2426
* <p>Exception for handling unexpected situations during configuration.</p>
2527
*
@@ -28,77 +30,48 @@
2830
* @author Fugerit
2931
*
3032
*/
31-
public class ConfigException extends Exception {
33+
public class ConfigException extends CodeException {
3234

3335
/**
34-
* <p>Default value for the code field in a ConfigException.</p>
36+
*
3537
*/
36-
public static final int DEFAULT_CODE = -1;
38+
private static final long serialVersionUID = -6673695755101705239L;
3739

38-
private int code = DEFAULT_CODE;
39-
40-
/*
41-
*
40+
/**
41+
* <p>Default value for the code field in a ConfigException.</p>
4242
*/
43-
private static final long serialVersionUID = -4205246051306630691L;
43+
public static final int DEFAULT_CODE = CodeException.DEFAULT_CODE;
4444

4545
public ConfigException() {
4646
super();
4747
}
4848

49-
public ConfigException(String message, Throwable cause) {
50-
super(message, cause);
49+
public ConfigException(int code) {
50+
super(code);
5151
}
5252

53-
public ConfigException(String message) {
54-
super(message);
53+
public ConfigException(String message, int code) {
54+
super(message, code);
5555
}
5656

57-
public ConfigException(Throwable cause) {
58-
super(cause);
57+
public ConfigException(String message, Throwable cause, int code) {
58+
super(message, cause, code);
5959
}
6060

61-
public ConfigException(int code) {
62-
super();
63-
this.code = code;
61+
public ConfigException(String message, Throwable cause) {
62+
super(message, cause);
6463
}
6564

66-
public ConfigException(String message, int code) {
65+
public ConfigException(String message) {
6766
super(message);
68-
this.code = code;
6967
}
7068

7169
public ConfigException(Throwable cause, int code) {
72-
super(cause);
73-
this.code = code;
70+
super(cause, code);
7471
}
7572

76-
public ConfigException(String message, Throwable cause, int code) {
77-
super(message, cause);
78-
this.code = code;
73+
public ConfigException(Throwable cause) {
74+
super(cause);
7975
}
8076

81-
/**
82-
* @return the code
83-
*/
84-
public int getCode() {
85-
return code;
86-
}
87-
88-
/**
89-
* @param code the code to set
90-
*/
91-
public void setCode(int code) {
92-
this.code = code;
93-
}
94-
95-
/*
96-
* (non-Javadoc)
97-
* @see java.lang.Throwable#toString()
98-
*/
99-
@Override
100-
public String toString() {
101-
return super.toString()+"[code:"+this.code+"]";
102-
}
103-
10477
}
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
package org.fugerit.java.core.lang.ex;
2+
3+
public class CodeException extends Exception {
4+
5+
/**
6+
*
7+
*/
8+
private static final long serialVersionUID = -8144962171201460491L;
9+
10+
public static final int DEFAULT_CODE = -1;
11+
12+
private final int code;
13+
14+
public int getCode() {
15+
return code;
16+
}
17+
18+
public CodeException() {
19+
this( DEFAULT_CODE );
20+
}
21+
22+
public CodeException(String message, Throwable cause) {
23+
this(message, cause, DEFAULT_CODE);
24+
}
25+
26+
public CodeException(String message) {
27+
this(message, DEFAULT_CODE);
28+
}
29+
30+
public CodeException(Throwable cause) {
31+
this(cause, DEFAULT_CODE);
32+
}
33+
34+
public CodeException( int code ) {
35+
super();
36+
this.code = code;
37+
}
38+
39+
public CodeException(String message, Throwable cause, int code) {
40+
super(message, cause);
41+
this.code = code;
42+
}
43+
44+
public CodeException(String message, int code) {
45+
super(message);
46+
this.code = code;
47+
}
48+
49+
public CodeException(Throwable cause, int code) {
50+
super(cause);
51+
this.code = code;
52+
}
53+
54+
}

fj-ext/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>org.fugerit.java</groupId>
99
<artifactId>fj-lib</artifactId>
10-
<version>0.7.6.4-jd1</version>
10+
<version>0.7.6.5</version>
1111
</parent>
1212

1313
<name>fj-ext</name>

fj-tool/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>org.fugerit.java</groupId>
99
<artifactId>fj-lib</artifactId>
10-
<version>0.7.6.4-jd1</version>
10+
<version>0.7.6.5</version>
1111
</parent>
1212

1313
<name>fj-tool</name>

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<relativePath></relativePath>
1212
</parent>
1313

14-
<version>0.7.6.4-jd1</version>
14+
<version>0.7.6.5</version>
1515
<packaging>pom</packaging>
1616

1717
<name>fj-lib</name>

0 commit comments

Comments
 (0)