We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
FE
API
customException
//성공메시지 리턴 return new ResponseEntity<>(new ReturnCodeDTO(200, SuccessCode.SUCCESS_INCOME.getMessage()), HttpStatusCode.valueOf(SuccessCode.SUCCESS_INCOME.getStatus()));
controller
ResponseEntity
ReturnCodeDTO
constants
SuccessCode
ErrorCode
enum
The text was updated successfully, but these errors were encountered:
No branches or pull requests
구현이유
FE
팀에서API
요청 시 오류 내용에 대해 상세 정보를 확인가능할 수 있도록 하기 위해 구현customException
을 통해 서버측에서도 상세한 에러 메세지를 받을 수 있도록 한다.사용방법
controller
계층에서 구현한다.ResponseEntity
형태로ReturnCodeDTO
클래스를 전송한다.constants
폴더의SuccessCode
ErrorCode
enum
클래스의 메세지 및 상태를 사용한다.사용시 주의사항
추가 구현
The text was updated successfully, but these errors were encountered: