blob: 51774e6e9e0bec1eda630a205c6384681c11cf56 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
syntax = "proto3";
package Tango.PMR.Common;
option java_package = "com.twine.tango.pmr.common";
enum ErrorCode
{
//General (Needs to be organized)
NONE = 0;
GENERAL_ERROR = 1;
BAD_CRC = 2;
INVALID_DIGITAL_PIN_NUMBER = 3; //Can be returned by SetDigitalOutResponse.
UNAUTHORIZED_CONNECTION = 4; //Should be returned if no ConnectionRequest with a valid password was made.
CONTINUOUS_RESPONSE_ABORTED = 5; //Should be returned to a continuous response when aborted by the requesting client.
JOB_FAILED = 6;
INVALID_PARAMETER = 7;
//IO
INVALID_UPLOAD_ID = 1000; //Returned by FileChunkUploadResponse when the UploadID was not set by FileUploadRequest. Or returned by ExecuteProcessResponse when the UploadID does not exist or has not been completed.
FILE_NOT_FOUND = 1001; //Returned by ExecuteProcessResponse when the FileName was not found.
INVALID_PROCESS_ID = 1002; //Returned by KillProcessResponse when the process id was not found.
FILE_LENGTH_OUT_OF_RANGE = 1003; //Returned by FileChunkUploadResponse when the uploaded file size exceeds the expected Length from FileUploadRequest.
//Job Failure
JOB_UNSPECIFIED_ERROR = 2000;
JOB_THREAD_BREAK = 2001;
JOB_WINDER_DANCER_FAIL = 2002;
JOB_POOLER_DANCER_FAIL = 2003;
JOB_FEEDER_DANCER_FAIL = 2004;
JOB_OUT_OF_DYE = 2005;
JOB_OTHER_ALARM = 2006;
}
|