Lines Matching defs:CustomSubError
36 class CustomSubError : public RTTIExtends<CustomSubError, CustomError> {
38 CustomSubError(int V1, std::string V2)
39 : RTTIExtends<CustomSubError, CustomError>(V1), V2(std::move(V2)) {}
41 return "CustomSubError V1 = " + std::to_string(V1) + ", " + V2;
91 if (auto CSE = error_cast<CustomSubError>(E)) {
101 auto E = make_error<CustomSubError>(42, "foo");
110 auto E = make_error<CustomSubError>(42, "foo");
111 if (auto CSE = error_cast<CustomSubError>(E)) {
151 Error F = make_error<CustomSubError>(42, "foo");
155 EXPECT_FALSE(E.isA<CustomSubError>());
157 EXPECT_TRUE(F.isA<CustomSubError>());