-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathUserErrorCode.java
More file actions
46 lines (37 loc) Β· 1.17 KB
/
UserErrorCode.java
File metadata and controls
46 lines (37 loc) Β· 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
package com.cakey.user.exception;
import com.cakey.rescode.ApiCode;
import com.cakey.rescode.ErrorCode;
import lombok.RequiredArgsConstructor;
import org.springframework.http.HttpStatus;
@RequiredArgsConstructor
public enum UserErrorCode implements ErrorCode {
/**
* 400 Bad Request
*/
/**
* 404 Not Found
*/
USER_SOCIAL_TYPE_NOT_FOUND(HttpStatus.NOT_FOUND, 40430, "μ μ μ μμ
νμ
μ μ°Ύμ μ μμ΅λλ€."),
USER_NOT_FOUND(HttpStatus.NOT_FOUND, 40431, "μ μ λ₯Ό μ°Ύμ μ μμ΅λλ€."),
/**
* 500 Server Internal Error
*/
KAKAO_LOGIN_FAILED(HttpStatus.INTERNAL_SERVER_ERROR, 50030, "μΉ΄μΉ΄μ€ λ‘κ·ΈμΈμ μ€ν¨νμμ΅λλ€"),
USER_RT_CACHE_NOT_FOUNT(HttpStatus.INTERNAL_SERVER_ERROR, 50031, "μλ² λ΄λΆ μΊμμ μ μ₯λ 리νλ μ ν ν°μ΄ μμ΅λλ€."),
;
private final HttpStatus httpStatus;
private final int code;
private final String message;
@Override
public HttpStatus getHttpStatus() {
return httpStatus;
}
@Override
public int getCode() {
return code;
}
@Override
public String getMessage() {
return message;
}
}