Mistake on this page? Email us
pt_api_error_codes.h
Go to the documentation of this file.
1 /*
2  * ----------------------------------------------------------------------------
3  * Copyright 2018 ARM Ltd.
4  *
5  * SPDX-License-Identifier: Apache-2.0
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  * ----------------------------------------------------------------------------
19  */
20 
21 #ifndef PT_API_ERROR_CODES_H_
22 #define PT_API_ERROR_CODES_H_
23 
37 typedef enum {
38 
39  /*
40  * Generic error codes
41  */
42 
47 
52 
53  /*
54  * Error codes related to server state
55  */
56 
61 
66 
71 
76 
81 
86 
91 
96 
101 
102  /*
103  * Error codes related to client state.
104  */
105 
110 
115 
120 
125 
130 
135 
140 
145 
150 
155 
160 
162 
168 
174 #endif /* PT_API_ERROR_CODES_H_ */
The request timed out.
Definition: pt_api_error_codes.h:95
The resource was not writable.
Definition: pt_api_error_codes.h:134
The resource was not readable.
Definition: pt_api_error_codes.h:129
Cannot register the endpoint, because it is already registered.
Definition: pt_api_error_codes.h:85
The Edge Core is shutting down.
Definition: pt_api_error_codes.h:90
The given resource was not found.
Definition: pt_api_error_codes.h:119
The protocol translator is already registered.
Definition: pt_api_error_codes.h:70
pt_api_result_code_e
Definition: pt_api_error_codes.h:37
Unknown PT API error.
Definition: pt_api_error_codes.h:51
Write to protocol translator failed.
Definition: pt_api_error_codes.h:139
The protocol translator client write error.
Definition: pt_api_error_codes.h:109
Cannot add new endpoint, because the maximum number of registered endpoints is already in use...
Definition: pt_api_error_codes.h:80
Certificate renewal failed to invalid parameters.
Definition: pt_api_error_codes.h:154
An illegal value was given to write.
Definition: pt_api_error_codes.h:114
Operation succeeded.
Definition: pt_api_error_codes.h:46
The protocol translator is not registered.
Definition: pt_api_error_codes.h:65
The given protocol translator name is already registered.
Definition: pt_api_error_codes.h:75
const char * pt_api_get_error_message(pt_api_result_code_e code)
Get the human-readable error message for the error code.
Certificate renewal failed to internal error.
Definition: pt_api_error_codes.h:149
Certificate renewal failed because a memory allocation failed.
Definition: pt_api_error_codes.h:159
The request timed out.
Definition: pt_api_error_codes.h:100
An internal error code.
Definition: pt_api_error_codes.h:60
the JSON structure is not according to specification.
Definition: pt_api_error_codes.h:124
Certificate renewal failed because one is already in progress.
Definition: pt_api_error_codes.h:144