[zypp-commit] r10118 - in /trunk/libzypp/zypp: RepoManager.cc repo/RepoException.cc repo/RepoException.h
Author: jreidinger Date: Fri May 16 09:59:58 2008 New Revision: 10118 URL: http://svn.opensuse.org/viewcvs/zypp?rev=10118&view=rev Log: throw more describing exception when repo probing failed (bnc #389690) Modified: trunk/libzypp/zypp/RepoManager.cc trunk/libzypp/zypp/repo/RepoException.cc trunk/libzypp/zypp/repo/RepoException.h Modified: trunk/libzypp/zypp/RepoManager.cc URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/zypp/RepoManager.cc?rev=10118&r1=10117&r2=10118&view=diff ============================================================================== --- trunk/libzypp/zypp/RepoManager.cc (original) +++ trunk/libzypp/zypp/RepoManager.cc Fri May 16 09:59:58 2008 @@ -520,7 +520,7 @@ } else { - ZYPP_THROW(RepoUnknownTypeException()); + ZYPP_THROW(RepoUnknownTypeException(info)); } } catch ( const Exception &e ) Modified: trunk/libzypp/zypp/repo/RepoException.cc URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/zypp/repo/RepoException.cc?rev=10118&r1=10117&r2=10118&view=diff ============================================================================== --- trunk/libzypp/zypp/repo/RepoException.cc (original) +++ trunk/libzypp/zypp/repo/RepoException.cc Fri May 16 09:59:58 2008 @@ -12,6 +12,7 @@ #include <iostream> //#include "zypp/base/Logger.h" #include "zypp/repo/RepoException.h" +#include "zypp/base/String.h" using std::endl; @@ -48,6 +49,11 @@ : RepoException( info, msg_r ) {} + RepoUnknownTypeException::RepoUnknownTypeException( const RepoInfo &info) + : RepoException( info, + str::form("Cannot determine type for repository %s.",info.alias().c_str())) + {} + std::ostream & RepoException::dumpOn( std::ostream & str ) const { Modified: trunk/libzypp/zypp/repo/RepoException.h URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/zypp/repo/RepoException.h?rev=10118&r1=10117&r2=10118&view=diff ============================================================================== --- trunk/libzypp/zypp/repo/RepoException.h (original) +++ trunk/libzypp/zypp/repo/RepoException.h Fri May 16 09:59:58 2008 @@ -133,6 +133,8 @@ : RepoException(msg_r) {} + RepoUnknownTypeException( const RepoInfo &info ); + RepoUnknownTypeException() {} -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org
participants (1)
-
jreidinger@svn.opensuse.org