* Cleaned up the exception classes so they require less space. This

reduced the size of the stripped libtorrent by 1/7.


git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@822 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2006-12-11 10:33:09 +00:00
parent 460aac5df0
commit fcb8154188
26 changed files with 97 additions and 97 deletions
+3 -3
View File
@@ -85,10 +85,10 @@ CommandScheduler::erase(iterator itr) {
void
CommandScheduler::call_item(value_type item) {
if (item->is_queued())
throw torrent::client_error("CommandScheduler::call_item(...) called but item is still queued.");
throw torrent::internal_error("CommandScheduler::call_item(...) called but item is still queued.");
if (std::find(begin(), end(), item) == end())
throw torrent::client_error("CommandScheduler::call_item(...) called but the item isn't in the scheduler.");
throw torrent::internal_error("CommandScheduler::call_item(...) called but the item isn't in the scheduler.");
// Remove the item before calling the command if it should be
// removed.
@@ -110,7 +110,7 @@ CommandScheduler::call_item(value_type item) {
}
if (next <= cachedTime)
throw torrent::client_error("CommandScheduler::call_item(...) tried to schedule a zero interval item.");
throw torrent::internal_error("CommandScheduler::call_item(...) tried to schedule a zero interval item.");
item->enable(next);
}