Skip to content

Commit 87351b9

Browse files
claude[bot]github-actions[bot]claude
authored
Maintenance: ErrorType - Modernize with Lombok (#98)
Co-authored-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com> Co-authored-by: Claude <[email protected]>
1 parent 57fdcca commit 87351b9

File tree

1 file changed

+2
-17
lines changed

1 file changed

+2
-17
lines changed

src/main/java/spring/memewikibe/support/error/ErrorType.java

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
package spring.memewikibe.support.error;
22

3+
import lombok.Getter;
34
import org.springframework.boot.logging.LogLevel;
45
import org.springframework.http.HttpStatus;
56

7+
@Getter
68
public enum ErrorType {
79
DEFAULT_ERROR(
810
HttpStatus.INTERNAL_SERVER_ERROR, ErrorCode.E500, "예기치 못한 에러가 발생했습니다.", LogLevel.ERROR),
@@ -29,26 +31,9 @@ public enum ErrorType {
2931
private final LogLevel logLevel;
3032

3133
ErrorType(HttpStatus status, ErrorCode code, String message, LogLevel logLevel) {
32-
3334
this.status = status;
3435
this.code = code;
3536
this.message = message;
3637
this.logLevel = logLevel;
3738
}
38-
39-
public HttpStatus getStatus() {
40-
return status;
41-
}
42-
43-
public ErrorCode getCode() {
44-
return code;
45-
}
46-
47-
public String getMessage() {
48-
return message;
49-
}
50-
51-
public LogLevel getLogLevel() {
52-
return logLevel;
53-
}
5439
}

0 commit comments

Comments
 (0)