Replacing std::exception with std::runtime_error

This commit is contained in:
doctaweed
2020-08-26 22:24:03 -06:00
parent 311e025fe9
commit 92976234a1
31 changed files with 123 additions and 123 deletions
@@ -134,7 +134,7 @@ static uint32_t c_symlink2(LinkedObjectFile& f,
word_kind = LinkedWord::TYPE_PTR;
break;
default:
throw std::exception("unhandled SymbolLinkKind");
throw std::runtime_error("unhandled SymbolLinkKind");
}
f.symbol_link_word(seg_id, code_ptr_offset - initial_offset, name, word_kind);
@@ -191,7 +191,7 @@ static uint32_t c_symlink3(LinkedObjectFile& f,
word_kind = LinkedWord::TYPE_PTR;
break;
default:
throw std::exception("unhandled SymbolLinkKind");
throw std::runtime_error("unhandled SymbolLinkKind");
}
f.symbol_link_word(seg, code_ptr - initial_offset, name, word_kind);