diff options
Diffstat (limited to 'zencore')
| -rw-r--r-- | zencore/stream.cpp | 2 | ||||
| -rw-r--r-- | zencore/string.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/zencore/stream.cpp b/zencore/stream.cpp index bd925ebc4..e6cb35c01 100644 --- a/zencore/stream.cpp +++ b/zencore/stream.cpp @@ -22,7 +22,7 @@ MemoryInStream::Read(void* buffer, size_t byteCount, uint64_t offset) const size_t needEnd = offset + byteCount; if (needEnd > m_Buffer.size()) - throw std::exception("read past end of file!"); // TODO: better exception + throw std::runtime_error("read past end of file!"); // TODO: better exception memcpy(buffer, m_Buffer.data() + offset, byteCount); } diff --git a/zencore/string.cpp b/zencore/string.cpp index 21ba5b204..3037df0e7 100644 --- a/zencore/string.cpp +++ b/zencore/string.cpp @@ -437,7 +437,7 @@ template<typename C> [[noreturn]] void StringBuilderImpl<C>::Fail(const char* reason) { - throw std::exception(reason); + throw std::runtime_error(reason); } // Instantiate templates once |