Skip to content

Commit

Permalink
โœจFeat: ErrorStatus enum ์ถ”๊ฐ€
Browse files Browse the repository at this point in the history
  • Loading branch information
Zena0128 committed Feb 17, 2024
1 parent 344068d commit 66fcac8
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,13 @@ public enum ErrorStatus {
INVALID_TYPE_ERROR(HttpStatus.BAD_REQUEST, "COMMON400", "์˜ฌ๋ฐ”๋ฅด์ง€ ์•Š์€ ํƒ€์ž…์ž…๋‹ˆ๋‹ค."),
ILLEGAL_ARGUMENT_ERROR(HttpStatus.BAD_REQUEST, "COMMON400", "ํ•„์ˆ˜ ํŒŒ๋ผ๋ฏธํ„ฐ๊ฐ€ ์—†์Šต๋‹ˆ๋‹ค"),
INTERNAL_SERVER_ERROR(HttpStatus.INTERNAL_SERVER_ERROR, "COMMON500", "์„œ๋ฒ„ ์˜ค๋ฅ˜๊ฐ€ ๋ฐœ์ƒํ–ˆ์Šต๋‹ˆ๋‹ค. ์ž ์‹œ ํ›„ ๋‹ค์‹œ ์‹œ๋„ํ•ด์ฃผ์„ธ์š”."),
INVALID_HTTP_METHOD(HttpStatus.METHOD_NOT_ALLOWED, "COMMON400", "์ž˜๋ชป๋œ Http Method ์š”์ฒญ์ž…๋‹ˆ๋‹ค.");
INVALID_HTTP_METHOD(HttpStatus.METHOD_NOT_ALLOWED, "COMMON400", "์ž˜๋ชป๋œ Http Method ์š”์ฒญ์ž…๋‹ˆ๋‹ค."),
NO_PERMISSION_ERROR(HttpStatus.BAD_REQUEST, "COMMOM400", "ํ•ด๋‹น ์œ ์ €์—๊ฒŒ ์ˆ˜์ •/์‚ญ์ œ ๊ถŒํ•œ์ด ์—†์Šต๋‹ˆ๋‹ค."),
USER_NOT_FOUND_ERROR(HttpStatus.NOT_FOUND, "COMMOM400", "ํ•ด๋‹น ์œ ์ €๋ฅผ ์ฐพ์„ ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค."),
CATEGORY_NOT_FOUND_ERROR(HttpStatus.NOT_FOUND, "COMMOM400", "ํ•ด๋‹น ์นดํ…Œ๊ณ ๋ฆฌ๋ฅผ ์ฐพ์„ ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค."),
PLAN_NOT_FOUND_ERROR(HttpStatus.NOT_FOUND, "COMMOM400", "ํ•ด๋‹น plan์„ ์ฐพ์„ ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค."),
DO_NOT_FOUND_ERROR(HttpStatus.NOT_FOUND, "COMMOM400", "ํ•ด๋‹น do๋ฅผ ์ฐพ์„ ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค."),
SEE_NOT_FOUND_ERROR(HttpStatus.NOT_FOUND, "COMMOM400", "ํ•ด๋‹น see๋ฅผ ์ฐพ์„ ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค."),;


private final HttpStatus httpStatus;
Expand Down

0 comments on commit 66fcac8

Please sign in to comment.