Skip to content
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

[BE] 커스텀 예외 및 에러코드 인터페이스 추가 #29

Merged
merged 1 commit into from
Jul 18, 2024

Conversation

ikjo39
Copy link
Contributor

@ikjo39 ikjo39 commented Jul 18, 2024

관련 이슈

작업 내용

  • 커스텀 예외로 사용할 MomoException 추가
  • 모든 에러코드에 구현할 공통 인터페이스 추가

특이 사항

없습니다.

리뷰 요구사항 (선택)

@ikjo39 ikjo39 added 🐈‍⬛ 백엔드 백엔드 관련 이슈에요 :) 🚀 기능 기능을 개발해요 :) labels Jul 18, 2024
@ikjo39 ikjo39 added this to the 2차 데모데이 milestone Jul 18, 2024
Comment on lines +7 to +14
public class MomoException extends RuntimeException {

private final ErrorCodeType errorCodeType;

public MomoException(ErrorCodeType errorCodeType) {
this.errorCodeType = errorCodeType;
}
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

상태코드와 메시지는 따로 없는걸까요?
+) Throwable cause

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Throwable이 필요한 경우에 추가해보려 합니다!

@ikjo39 ikjo39 merged commit d074329 into develop Jul 18, 2024
@ikjo39 ikjo39 deleted the feat/28-add-root-custom-exception branch July 18, 2024 11:22
hw0603 pushed a commit to hw0603/momo-cicd-playground that referenced this pull request Jul 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐈‍⬛ 백엔드 백엔드 관련 이슈에요 :) 🚀 기능 기능을 개발해요 :)
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

[BE] 공통된 커스텀 예외를 생성해요 :)
5 participants