We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b60ce0d commit b7d0803Copy full SHA for b7d0803
1 file changed
src/com/cleancoder/args/ArgsException.java
@@ -7,9 +7,6 @@ public class ArgsException extends Exception {
7
private String errorParameter = null;
8
private ErrorCode errorCode = OK;
9
10
- public ArgsException() {
11
- }
12
-
13
public ArgsException(ErrorCode errorCode) {
14
this.errorCode = errorCode;
15
}
@@ -37,18 +34,10 @@ public String getErrorParameter() {
37
34
return errorParameter;
38
35
39
36
40
- public void setErrorParameter(String errorParameter) {
41
- this.errorParameter = errorParameter;
42
43
44
public ErrorCode getErrorCode() {
45
return errorCode;
46
47
48
- public void setErrorCode(ErrorCode errorCode) {
49
- this.errorCode = errorCode;
50
51
52
public String errorMessage() {
53
switch (errorCode) {
54
case OK:
0 commit comments