Add new type of errror

This commit is contained in:
Laurent Clouet
2020-05-16 10:51:22 +02:00
parent 642ad86419
commit 656985c538
3 changed files with 9 additions and 1 deletions
+7
View File
@@ -0,0 +1,7 @@
<component name="ProjectCodeStyleConfiguration">
<code_scheme name="Project" version="173">
<codeStyleSettings language="JAVA">
<option name="RIGHT_MARGIN" value="160" />
</codeStyleSettings>
</code_scheme>
</component>
+1 -1
View File
@@ -345,7 +345,7 @@ public class Client {
ret = confirmJob(this.renderingJob); ret = confirmJob(this.renderingJob);
if (ret != Error.Type.OK) { if (ret != Error.Type.OK) {
gui.error("Client::run problem with confirmJob (returned " + ret + ")"); gui.error("Client::run problem with confirmJob (returned " + ret + ")");
sendError(step); sendError(step, this.renderingJob, Error.Type.VALIDATION_FAILED);
} }
} }
else { else {
+1
View File
@@ -48,6 +48,7 @@ public class Error {
OS_NOT_SUPPORTED(17), OS_NOT_SUPPORTED(17),
CPU_NOT_SUPPORTED(18), CPU_NOT_SUPPORTED(18),
GPU_NOT_SUPPORTED(19), GPU_NOT_SUPPORTED(19),
VALIDATION_FAILED(25),
// internal error handling // internal error handling
NO_SPACE_LEFT_ON_DEVICE(100), NO_SPACE_LEFT_ON_DEVICE(100),