| 1 | package com.project.auth.application.support.exception; | |
| 2 | ||
| 3 | public enum AuthErrorCode implements ClientFacingErrorCode { | |
| 4 | AUTHENTICATION_REQUIRED("AUTH-001", "인증이 필요합니다."), | |
| 5 | ACCESS_DENIED("AUTH-002", "접근 권한이 없습니다."), | |
| 6 | KEYCLOAK_CLAIMS_INVALID("AUTH-003", "Keycloak 토큰 클레임이 올바르지 않습니다."), | |
| 7 | KEYCLOAK_USER_NOT_FOUND("AUTH-004", "연결된 내부 Keycloak 사용자를 찾을 수 없습니다."); | |
| 8 | ||
| 9 | private final String code; | |
| 10 | private final String message; | |
| 11 | ||
| 12 | AuthErrorCode(String code, String message) { | |
| 13 | this.code = code; | |
| 14 | this.message = message; | |
| 15 | } | |
| 16 | ||
| 17 | @Override | |
| 18 | public String code() { | |
| 19 |
1
1. code : replaced return value with "" for com/project/auth/application/support/exception/AuthErrorCode::code → NO_COVERAGE |
return code; |
| 20 | } | |
| 21 | ||
| 22 | @Override | |
| 23 | public String message() { | |
| 24 |
1
1. message : replaced return value with "" for com/project/auth/application/support/exception/AuthErrorCode::message → NO_COVERAGE |
return message; |
| 25 | } | |
| 26 | } | |
Mutations | ||
| 19 |
1.1 |
|
| 24 |
1.1 |