feat(exception): creada excepción personalizada PythonApiException para el…

feat(exception): creada excepción personalizada PythonApiException para el servicio de conexión con la API
parent 3f46098b
package com.example.apprecetas.exception;
import lombok.Getter;
import org.springframework.http.HttpStatus;
@Getter
public class PythonApiException extends RuntimeException {
private final HttpStatus status;
private final String message;
public PythonApiException(HttpStatus status, String message) {
super(message);
this.status = status;
this.message = message;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment