package com.takensoft.common.exception;

/**
 * @author 하석형
 * @since 2025.03.21
 * @modification
 *     since    |    author    | description
 *  2025.03.21  |    하석형     | 최초 등록
 *
 * RuntimeException - 실행 중 발생하는 예외를 처리하는 기본 클래스
 *
 * 금칙어 포함 시 발생하는 예외
 */
public class CustomPrhibtWordException extends RuntimeException {

    private String word; // 금지어

    public CustomPrhibtWordException() {
    }

    public CustomPrhibtWordException(String message, String word) {
        super(message);
        this.word = word;
    }

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

    public String getWord() {
        return word;
    }
}