From: Arvin Schnell Date: Tue, 5 Apr 2016 15:14:12 +0000 (+0200) Subject: - use exception macro X-Git-Tag: v0.3.3~12^2~9 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=8726d52ec1cd1ee7a519ce2b357c22ee4fb42abb;p=thirdparty%2Fsnapper.git - use exception macro --- diff --git a/client/types.cc b/client/types.cc index 17152f8f..42d8f057 100644 --- a/client/types.cc +++ b/client/types.cc @@ -1,5 +1,6 @@ /* * Copyright (c) 2012 Novell, Inc. + * Copyright (c) 2016 SUSE LLC * * All Rights Reserved. * @@ -21,6 +22,7 @@ #include +#include #include "types.h" @@ -42,7 +44,7 @@ XSnapshots::const_iterator XSnapshots::findPre(const_iterator post) const { if (post == entries.end() || post->isCurrent() || post->getType() != POST) - throw; + SN_THROW(IllegalSnapshotException()); for (const_iterator it = begin(); it != end(); ++it) { @@ -58,7 +60,7 @@ XSnapshots::const_iterator XSnapshots::findPost(const_iterator pre) const { if (pre == entries.end() || pre->isCurrent() || pre->getType() != PRE) - throw; + SN_THROW(IllegalSnapshotException()); for (const_iterator it = begin(); it != end(); ++it) {