### What changes were proposed in this pull request? This PR adds exceptions and checking utils code to CppClient. Besides, the ctest framework is added to CppClient for UTs. ### Why are the changes needed? To provide exception utils and UT frmework to CppClient. ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Compilation and UTs. Closes #2966 from HolyLow/issue/celeborn-1754-add-exceptions-utils-to-cppClient. Authored-by: HolyLow <jiaming.xie7@gmail.com> Signed-off-by: mingji <fengmingxiao.fmx@alibaba-inc.com>
27 lines
912 B
C++
27 lines
912 B
C++
/*
|
|
* Based on Exceptions.cpp from Facebook Velox
|
|
*
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/
|
|
|
|
#include "celeborn/utils/Exceptions.h"
|
|
|
|
namespace celeborn::detail {
|
|
|
|
CELEBORN_DEFINE_CHECK_FAIL_TEMPLATES(::celeborn::CelebornRuntimeError);
|
|
CELEBORN_DEFINE_CHECK_FAIL_TEMPLATES(::celeborn::CelebornUserError);
|
|
|
|
} // namespace celeborn::detail
|