From add9efa77339958ba90232e036793e725beb5797 Mon Sep 17 00:00:00 2001 From: Gogs Date: Fri, 27 May 2016 15:09:01 +0800 Subject: [PATCH] change exception code. --- router.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/router.hpp b/router.hpp index f96a9dd..24e81c7 100644 --- a/router.hpp +++ b/router.hpp @@ -82,14 +82,14 @@ class router : boost::noncopyable auto it = map_invokers_.find(func_name); if (it == map_invokers_.end()) { - result = get_json(result_code::EXCEPTION, "unknown function: " + func_name); + result = get_json(result_code::ARGUMENT_EXCEPTION, "unknown function: " + func_name); callback_to_server_(func_name, result.c_str(), conn, true); return; } if (it->second.param_size() != parser.param_size()) //参数个数不匹配 { - result = get_json(result_code::EXCEPTION, std::string("parameter number is not match")); + result = get_json(result_code::ARGUMENT_EXCEPTION, std::string("parameter number is not match")); callback_to_server_(func_name, result.c_str(), conn, true); break; }