[Code 개선] #3. [Error] 전역 예외 처리기 및 표준 에러 응답 규격화 #43
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
1. 목표
애플리케이션 전반에서 발생하는 예외를 포착하여 표준화된 JSON 형식으로 응답하는 전역 에러 핸들러를 구축합니다.
2. 상세 원인 및 배경
try...except와jsonify({'error': str(e)})가 흩어져 있어 코드가 중복되고 응답 규격이 제각각입니다.Original: Kyeongmin/test#33