anjana_sreekumar@infosys.com | 991c206 | 2020-01-08 11:42:57 +0530 | [diff] [blame^] | 1 | /* |
| 2 | * Copyright (c) 2003-2018, Great Software Laboratory Pvt. Ltd. |
| 3 | * Copyright (c) 2017 Intel Corporation |
| 4 | * Copyright (c) 2019, Infosys Ltd. |
| 5 | * |
| 6 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 7 | * you may not use this file except in compliance with the License. |
| 8 | * You may obtain a copy of the License at |
| 9 | * |
| 10 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 11 | * |
| 12 | * Unless required by applicable law or agreed to in writing, software |
| 13 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 15 | * See the License for the specific language governing permissions and |
| 16 | * limitations under the License. |
| 17 | */ |
| 18 | |
| 19 | #ifndef ERROR_CODES_H_ |
| 20 | #define ERROR_CODES_H_ |
| 21 | |
| 22 | /*** |
| 23 | Common error codes across MME |
| 24 | */ |
| 25 | |
| 26 | enum ERROR_CODES{ |
| 27 | SUCCESS = 0, |
| 28 | /*Generic error codes 0-100*/ |
| 29 | E_FAIL, |
| 30 | E_FAIL_INIT, /*Failed in initialization*/ |
| 31 | E_ALLOC_FAILED, |
| 32 | E_PARSING_FAILED, |
| 33 | |
| 34 | /*S1AP error codes 200-300 */ |
| 35 | S1AP_AUTH_FAILED = 201, |
| 36 | S1AP_SECMODE_FAILED, |
| 37 | S1AP_IDENTITY_FAILED, |
| 38 | |
| 39 | /*S6a error codes 300-500*/ |
| 40 | S6A_AIA_FAILED = 301, |
| 41 | S6A_FD_ERROR, |
| 42 | S6A_FD_CORE_INIT_FAILED, |
| 43 | S6A_FD_CORE_PARSECONF_FAILED, |
| 44 | S6A_FD_CORE_START_FAILED, |
| 45 | S6A_FD_GET_DICTVAL_FAILED, |
| 46 | S6A_FD_DICTSRCH_FAILED, |
| 47 | }; |
| 48 | |
| 49 | #endif /* ERROR_CODES_H__*/ |