Feat: handle disable of session on denoising

This commit is contained in:
Sheepit Renderfarm
2022-07-29 17:13:29 +00:00
committed by harlekin
parent 36b506aa6f
commit b061955eb9
4 changed files with 47 additions and 1 deletions

View File

@@ -41,6 +41,7 @@ import java.util.stream.Collectors;
import com.sheepit.client.datamodel.SpeedTestTarget;
import com.sheepit.client.datamodel.SpeedTestResult;
import com.sheepit.client.datamodel.SpeedTestTargetResult;
import com.sheepit.client.exception.FermeExceptionSessionDisabledDenoisingNotSupported;
import com.sheepit.client.hardware.hwid.HWIdentifier;
import com.sheepit.client.os.Windows;
import lombok.Getter;
@@ -379,6 +380,8 @@ public class Server extends Thread {
throw new FermeExceptionNoSession();
case JOB_REQUEST_ERROR_SESSION_DISABLED:
throw new FermeExceptionSessionDisabled();
case JOB_REQUEST_ERROR_SESSION_DISABLED_DENOISING_NOT_SUPPORTED:
throw new FermeExceptionSessionDisabledDenoisingNotSupported();
case JOB_REQUEST_ERROR_INTERNAL_ERROR:
throw new FermeExceptionBadResponseFromServer();
case JOB_REQUEST_ERROR_RENDERER_NOT_AVAILABLE: