File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
src/ystdlib/error_handling/test Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 55#include < string_view>
66#include < system_error>
77
8+ #include < ystdlib/error_handling/ErrorCode.hpp>
9+
810#include " constants.hpp"
911
10- using ystdlib::error_handling::test::AlwaysSuccessErrorCategory;
1112using ystdlib::error_handling::test::AlwaysSuccessErrorCodeEnum;
12- using ystdlib::error_handling::test::BinaryErrorCategory;
1313using ystdlib::error_handling::test::BinaryErrorCodeEnum;
1414using ystdlib::error_handling::test::cAlwaysSuccessErrorCategoryName;
1515using ystdlib::error_handling::test::cBinaryTestErrorCategoryName;
1616using ystdlib::error_handling::test::cFailureConditions;
1717using ystdlib::error_handling::test::cFailureErrorMsg;
1818using ystdlib::error_handling::test::cSuccessErrorMsg;
1919using ystdlib::error_handling::test::cUnrecognizedErrorCode;
20+ using AlwaysSuccessErrorCategory
21+ = ystdlib::error_handling::ErrorCategory<AlwaysSuccessErrorCodeEnum>;
22+ using BinaryErrorCategory = ystdlib::error_handling::ErrorCategory<BinaryErrorCodeEnum>;
2023
2124template <>
2225auto AlwaysSuccessErrorCategory::name () const noexcept -> char const * {
Original file line number Diff line number Diff line change @@ -16,10 +16,7 @@ enum class BinaryErrorCodeEnum : uint8_t {
1616};
1717
1818using AlwaysSuccessErrorCode = ystdlib::error_handling::ErrorCode<AlwaysSuccessErrorCodeEnum>;
19- using AlwaysSuccessErrorCategory
20- = ystdlib::error_handling::ErrorCategory<AlwaysSuccessErrorCodeEnum>;
2119using BinaryErrorCode = ystdlib::error_handling::ErrorCode<BinaryErrorCodeEnum>;
22- using BinaryErrorCategory = ystdlib::error_handling::ErrorCategory<BinaryErrorCodeEnum>;
2320} // namespace ystdlib::error_handling::test
2421
2522YSTDLIB_ERROR_HANDLING_MARK_AS_ERROR_CODE_ENUM (
You can’t perform that action at this time.
0 commit comments