package incheon.com.cmm.exception;

import org.springframework.http.HttpStatus;

/**
 * @Class Name : EntityNotFoundException.java
 * @Description : 엔티티를 찾을 수 없을 때 발생하는 예외 클래스
 * @Modification Information
 *
 *    수정일       수정자         수정내용
 *    -------     -------     -------------------
 *
 */
public class EntityNotFoundException extends BusinessException {
    
    public EntityNotFoundException(String message) {
        super(message, HttpStatus.NOT_FOUND);
    }
    
    public EntityNotFoundException(String entity, Long id) {
        super(entity + " 엔티티를 찾을 수 없습니다. ID: " + id, HttpStatus.NOT_FOUND);
    }
    
    public EntityNotFoundException(String entity, String field, String value) {
        super(entity + " 엔티티를 찾을 수 없습니다. [" + field + "=" + value + "]", HttpStatus.NOT_FOUND);
    }
} 