Detect when computer is runnout of free space on hard drive

This commit is contained in:
Laurent Clouet
2016-05-02 13:26:11 +02:00
parent ac7377ad19
commit dc63b9791b
4 changed files with 81 additions and 18 deletions

7
src/com/sheepit/client/Error.java Executable file → Normal file
View File

@@ -44,7 +44,10 @@ public class Error {
FAILED_TO_EXECUTE(16),
OS_NOT_SUPPORTED(17),
CPU_NOT_SUPPORTED(18),
GPU_NOT_SUPPORTED(19);
GPU_NOT_SUPPORTED(19),
NO_SPACE_LEFT_ON_DEVICE(100),
;
private final int id;
@@ -166,6 +169,8 @@ public class Error {
return "Operating System not supported.";
case CPU_NOT_SUPPORTED:
return "CPU not supported.";
case NO_SPACE_LEFT_ON_DEVICE:
return "No space left on hard disk";
default:
return in.toString();
}