aboutsummaryrefslogtreecommitdiffstats
path: root/Software/PMR/Messages/Common/ErrorCode.proto
blob: b58b3ed5760a351ceb9a30c6102f2df85e397a7e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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.

	//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.
}