Skip to content

Commit 98ae6ec

Browse files
Rename Exception package to conform with naming conventions
* Rename exception package * Add logger call * Remove unused Gui class
1 parent 3886dc0 commit 98ae6ec

File tree

7 files changed

+21
-21
lines changed

7 files changed

+21
-21
lines changed

src/main/java/app/App.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package app;
22

3-
import app.Exception.ConfigException;
3+
import app.exception.ConfigException;
44
import org.apache.logging.log4j.LogManager;
55
import org.apache.logging.log4j.Logger;
66

@@ -115,6 +115,7 @@ public static void main(String[] args) {
115115
}
116116

117117
private void onCancel() {
118+
LOGGER.info("Exiting, cancel called.");
118119
dispose();
119120
}
120121

src/main/java/app/Config.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package app;
22

3-
import app.Exception.ConfigException;
3+
import app.exception.ConfigException;
44
import com.esotericsoftware.yamlbeans.YamlException;
55
import com.esotericsoftware.yamlbeans.YamlReader;
66
import com.esotericsoftware.yamlbeans.YamlWriter;

src/main/java/app/Exception/ConfigException.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package app.Exception;
1+
package app.exception;
22

33
public class ConfigException extends Exception {
44

src/main/java/app/Gui.form

-13
This file was deleted.

src/main/java/app/Gui.java

-4
This file was deleted.

src/main/java/app/Utils.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package app;
22

3-
import app.Exception.ConfigException;
3+
import app.exception.ConfigException;
44
import org.apache.logging.log4j.LogManager;
55
import org.apache.logging.log4j.Logger;
66

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
package app.exception;
2+
3+
public class ConfigException extends Exception {
4+
5+
public ConfigException(String message) {
6+
super(message);
7+
}
8+
9+
public ConfigException(String message, Exception ex) {
10+
super(message, ex);
11+
}
12+
13+
public ConfigException(Exception ex) {
14+
super(ex);
15+
}
16+
}

0 commit comments

Comments
 (0)