Files
nahodka-back/src/main/java/com/krylov/refound/exception/ApiException.java
2026-03-26 00:21:30 +03:00

19 lines
449 B
Java

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;
}
}