Exception ✅

에러 응답 API ❌ ⇒ 프론트와 협의 필요

public class ErrorResponse {
	
  private int status;
	
  private String message;
	
  private LocalDateTime timestamp;
  
  private List<FieldError> errors;
  
  private String path;  
  
  @Getter
  @NoArgsConstructor(access = AccessLevel.PROTECTED)
  public static class FieldError {
    
    private String field;
    
    private String value;

    private String reason;
      ...
    }
  
}

CustomException rule ✅

  1. Exception 구조 - by yun

Untitled

Untitled

최상위 BusinessException을 상속 받는 InvalidValueException, EntityNotFoundException 등