-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
예외 로직 구현 #46
Merged
Merged
예외 로직 구현 #46
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- 에러 코드의 Base Exception인 BusinessException 구현 - 해당 클래스를 상속 받아 세부 에러 코드 클래스 구현
- 해당 클래스로 예외 발생 시 응답
- Controller에서 던지는 예외를 처리하는 클래스 - handleRuntimeException method는 서버 에러가 발생함을 클라이언트에게 알리고 내부적으론 InternalException을 통해 로그를 남김 - 서버 내부의 자세한 에러를 클라이언트에게 알리지 않음
- 좌석이 존재하지 않을 때 발생
- 이미 예약된 좌석이 존재할 때 발생
- 연장 요청이 종료 시간의 30분 전에 들어왔을 때 발생
- 연장 가능 횟수가 4회 초과일 때 발생
- 예약된 좌석이 없으면 발생
- Token이 만료되면 발생
- 유효하지 않는 Token일 때 발생
- Json Parsing 시 예외가 생기면 발생
- JsonParsingException, ExpiredTokenException, InvalidTokenException 적용
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This closes #45