Skip to content

Commit 5290e45

Browse files
authored
logic_error->runtime_error (#22)
1 parent ea1721f commit 5290e45

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

bnn/tests/test_core.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,12 +96,12 @@ TEST(Core, TensorCPU)
9696
{
9797
q->reshape(_new_shape, 2);
9898
}
99-
catch(const std::logic_error& e)
99+
catch(const std::runtime_error& e)
100100
{
101101
EXPECT_STREQ("The new shape consumes different amount of memory.", e.what());
102102
throw;
103103
}
104-
}, std::logic_error);
104+
}, std::runtime_error);
105105
}
106106

107107
int main(int ac, char* av[])

bnn/utils/utils_impl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ namespace bnn
196196
{
197197
delete BNNThreads;
198198
delete BNNMemory;
199-
throw std::logic_error(msg);
199+
throw std::runtime_error(msg);
200200
}
201201
}
202202

0 commit comments

Comments
 (0)