Skip to content

Commit 6fb71d9

Browse files
committed
fix exception error
1 parent 3a82116 commit 6fb71d9

File tree

1 file changed

+2
-1
lines changed
  • emmy_debugger/include/emmy_debugger/arena

1 file changed

+2
-1
lines changed

emmy_debugger/include/emmy_debugger/arena/arena.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
#include <cinttypes>
44
#include <vector>
55
#include <exception>
6+
#include <stdexcept>
67

78
template<class T>
89
class Arena;
@@ -48,7 +49,7 @@ class Arena {
4849
if (id.Raw < _data.size()) {
4950
return _data[id.Raw];
5051
}
51-
throw std::exception("index out of range");
52+
throw std::runtime_error("index out of range");
5253
}
5354

5455
Idx<T> Alloc() {

0 commit comments

Comments
 (0)