2 * Copyright (c) 2013 Samsung Electronics Co., Ltd All Rights Reserved
\r
4 * Licensed under the Apache License, Version 2.0 (the License);
\r
5 * you may not use this file except in compliance with the License.
\r
6 * You may obtain a copy of the License at
\r
8 * http://www.apache.org/licenses/LICENSE-2.0
\r
10 * Unless required by applicable law or agreed to in writing, software
\r
11 * distributed under the License is distributed on an AS IS BASIS,
\r
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
\r
13 * See the License for the specific language governing permissions and
\r
14 * limitations under the License.
\r
19 const char* __errorMsgTable[] =
\r
21 "PRIV_CHECKER_SUCCESS",
\r
22 "PRIV_CHECKER_ERROR_XML_ERROR",
\r
23 "PRIV_CHECKER_ERROR_INVALID_ARG",
\r
24 "PRIV_CHECKER_ERROR_OUT_OF_MEMORY",
\r
25 "PRIV_CHECKER_ERROR_IO_ERROR",
\r
26 "PRIV_CHECKER_ERROR_NO_DATA",
\r
27 "PRIV_CHECKER_ERROR_DB_ERROR",
\r
28 "PRIV_CHECKER_ERROR_SYSTEM_ERROR",
\r
29 "PRIV_CHECKER_ERROR_UNKNOW",
\r
33 Util::toHash(std::string src)
\r
39 Util::GetErrorMessage(int errorNo)
\r
42 if (errorNo < PRIV_CHECKER_ERROR_UNKNOW)
\r
44 return __errorMsgTable[errorNo];
\r
47 return "PRIV_CHECKER_ERROR_UNKNOW";
\r