From af33f67feee005a6289b38e9c81f20988503471e Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sun, 14 Nov 2010 08:13:59 +0000 Subject: [PATCH] 2010-11-14 Tatsuhiro Tsujikawa Don't catch Exception. * src/RealtimeCommand.cc --- ChangeLog | 5 +++++ src/RealtimeCommand.cc | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index c75c5ef5..013739f5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2010-11-14 Tatsuhiro Tsujikawa + + Don't catch Exception. + * src/RealtimeCommand.cc + 2010-11-14 Tatsuhiro Tsujikawa Removed unused includes. diff --git a/src/RealtimeCommand.cc b/src/RealtimeCommand.cc index 42952589..d6a34612 100644 --- a/src/RealtimeCommand.cc +++ b/src/RealtimeCommand.cc @@ -34,7 +34,7 @@ /* copyright --> */ #include "RealtimeCommand.h" #include "DownloadEngine.h" -#include "Exception.h" +#include "RecoverableException.h" #include "RequestGroup.h" namespace aria2 { @@ -61,7 +61,7 @@ bool RealtimeCommand::execute() e_->setNoWait(true); try { return executeInternal(); - } catch(Exception& e) { + } catch(RecoverableException& e) { bool r = handleException(e); return r; }