Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 784bcac

Browse files
refactor(base): reorder static method under the constructors
1 parent 2c8fbba commit 784bcac

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

‎src/main/java/letsdev/common/exception/support/BaseCustomException.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@
22

33
public class BaseCustomException extends RuntimeException {
44

5-
private static BaseErrorCode getDefaultErrorCode() {
6-
return DefaultBaseErrorCodeHolder.DEFAULT_BASE_ERROR_CODE;
7-
}
8-
95
protected final BaseErrorCode errorCode;
106

117
public BaseCustomException() {
@@ -33,6 +29,10 @@ public BaseCustomException(BaseErrorCode errorCode, Throwable cause) {
3329
this.errorCode = errorCode;
3430
}
3531

32+
private static BaseErrorCode getDefaultErrorCode() {
33+
return DefaultBaseErrorCodeHolder.DEFAULT_BASE_ERROR_CODE;
34+
}
35+
3636
public BaseErrorCode getErrorCode() {
3737
return errorCode;
3838
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /