18 lines
391 B
Java
18 lines
391 B
Java
package com.backend.hls.proxy.exception;
|
|
|
|
import java.net.http.HttpResponse;
|
|
|
|
public class FetchFailException extends Exception {
|
|
private final HttpResponse<?> response;
|
|
|
|
public FetchFailException(String message, HttpResponse<?> response) {
|
|
super(message);
|
|
this.response = response;
|
|
}
|
|
|
|
public HttpResponse<?> getResponse() {
|
|
return response;
|
|
}
|
|
|
|
}
|