Skip to content

Commit

Permalink
[feat] 배너 에러코드 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
sanghee0820 committed Nov 14, 2024
1 parent 4205cf1 commit 5e3fd2d
Showing 1 changed file with 32 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
package team7.inplace.global.exception.code;

import org.springframework.http.HttpStatus;

public enum BannerErrorCode implements ErrorCode {
NOT_FOUND("B001", "배너를 찾을 수 없습니다.", HttpStatus.NOT_FOUND);

private final String code;
private final String message;
private final HttpStatus httpStatus;

BannerErrorCode(String code, String message, HttpStatus httpStatus) {
this.code = code;
this.message = message;
this.httpStatus = httpStatus;
}

@Override
public HttpStatus httpStatus() {
return httpStatus;
}

@Override
public String code() {
return code;
}

@Override
public String message() {
return message;
}
}

0 comments on commit 5e3fd2d

Please sign in to comment.