package kr.xit.core.exception;

import lombok.Getter;
import org.springframework.http.HttpStatus;

/**
 * <pre>
 * description : WebClient 4xx 에러 : 에러 핸들러에서 사용
 *
 * packageName : kr.xit.core.exception
 * fileName    : ClientErrorException
 * author      : limju
 * date        : 2023-05-25
 * ======================================================================
 * 변경일         변경자        변경 내용
 * ----------------------------------------------------------------------
 * 2023-05-25    limju       최초 생성
 *
 * </pre>
 * @see kr.xit.core.spring.util.ApiWebClientUtil
 */
@Getter
public class ClientErrorException extends RuntimeException {
    private final HttpStatus status;
    private final String body;

    public ClientErrorException(HttpStatus status, String body) {
        this.status = status;
        this.body = body;
    }
}
