package com.krylov.refound.exception; import com.krylov.refound.enums.ErrorCode; import lombok.Getter; import org.springframework.http.HttpStatus; @Getter public class ApiException extends RuntimeException { private final ErrorCode errorCode; private final HttpStatus status; public ApiException(ErrorCode errorCode, String message, HttpStatus status) { super(message); this.errorCode = errorCode; this.status = status; } }