package com.takensoft.common.exception;

/**
 * @author 하석형
 * @since 2025.03.12
 * @modification
 *     since    |    author    | description
 *  2025.03.12  |    하석형     | 최초 등록
 *  2025.05.19  |    하석형     | 커스텀 메세지 출력 여부 추가
 *
 * RuntimeException - 실행 중 발생하는 예외를 처리하는 기본 클래스
 *
 * 중복 데이터 존재 시 발생하는 예외
 */
public class CustomDataDuplicationException extends RuntimeException {

    private String isCustom; // 커스텀 메세지 출력 여부

    public CustomDataDuplicationException() {
    }

    public CustomDataDuplicationException(String message, String isCustom) {
        super(message);
        this.isCustom = isCustom;
    }

    public CustomDataDuplicationException(String message, Throwable cause) {
        super(message, cause);
    }

    public String getCustom() {
        return isCustom;
    }
}