Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvng <viktor.govako@gmail.com>2012-10-27 14:43:47 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:46:19 +0300
commit67801f0fb8f25656f0960cefab1ad485a710cbf1 (patch)
tree01dd44508a1e075262f706ebfa92e3da936686a1 /platform/chunks_download_strategy.cpp
parent4d2d784943e2bb74735e203d5cc3629f68da9735 (diff)
Fix exception catching in download resume.
Diffstat (limited to 'platform/chunks_download_strategy.cpp')
-rw-r--r--platform/chunks_download_strategy.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/platform/chunks_download_strategy.cpp b/platform/chunks_download_strategy.cpp
index 042d94abd9..5c0cf1e281 100644
--- a/platform/chunks_download_strategy.cpp
+++ b/platform/chunks_download_strategy.cpp
@@ -73,7 +73,7 @@ void ChunksDownloadStrategy::SaveChunks(int64_t fileSize, string const & fName)
w.Write(&m_chunks[0], sizeof(ChunkT) * m_chunks.size());
return;
}
- catch(FileWriter::Exception const & e)
+ catch (FileWriter::Exception const & e)
{
LOG(LERROR, (e.Msg()));
}
@@ -119,9 +119,9 @@ int64_t ChunksDownloadStrategy::LoadOrInitChunks( string const & fName,
return downloadedSize;
}
}
- catch(FileReader::Exception const & e)
+ catch (RootException const & e)
{
- // Usually - file not exists.
+ // Usually - file not exists. May be SourceOutOfBoundsException.
LOG(LDEBUG, (e.Msg()));
}