aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAvatar Wouter van Kesteren <woutershep@gmail.com> 2015-05-08 05:12:20 +0200
committerAvatar Bo ├śrsted Andresen <zlin@exherbo.org> 2015-08-21 17:19:40 +0200
commit82a9e92b64b79eb2db0047bead68f227c9c31e24 (patch)
tree4a924d622b732b2e5ad9c961b512934a83b8bd1f /src
parente6dfb43fcbb0a760777376611035485c352e85ae (diff)
downloadpaludis-82a9e92b64b79eb2db0047bead68f227c9c31e24.tar.gz
paludis-82a9e92b64b79eb2db0047bead68f227c9c31e24.tar.xz
throw() -> noexcept
Change-Id: I461abfda8b7297c1bd04f1090f8d58fa96364616 Reviewed-on: https://galileo.mailstation.de/gerrit/1892 Reviewed-by: Saleem Abdulrasool <compnerd@compnerd.org> Reviewed-by: Kylie McClain <somasis@exherbo.org>
Diffstat (limited to 'src')
-rw-r--r--src/clients/cave/command_factory.cc2
-rw-r--r--src/clients/cave/command_factory.hh2
-rw-r--r--src/clients/cave/exceptions.cc16
-rw-r--r--src/clients/cave/exceptions.hh16
-rw-r--r--src/clients/cave/format_string.cc2
-rw-r--r--src/clients/cave/format_string.hh2
6 files changed, 20 insertions, 20 deletions
diff --git a/src/clients/cave/command_factory.cc b/src/clients/cave/command_factory.cc
index 206b18193..e1e7d5c34 100644
--- a/src/clients/cave/command_factory.cc
+++ b/src/clients/cave/command_factory.cc
@@ -247,7 +247,7 @@ CommandFactory::end() const
return first_iterator(_imp->handlers.end());
}
-UnknownCommand::UnknownCommand(const std::string & s) throw () :
+UnknownCommand::UnknownCommand(const std::string & s) noexcept :
Exception("Unknown command '" + s + "'")
{
}
diff --git a/src/clients/cave/command_factory.hh b/src/clients/cave/command_factory.hh
index dc3a60999..6afcb43e3 100644
--- a/src/clients/cave/command_factory.hh
+++ b/src/clients/cave/command_factory.hh
@@ -36,7 +36,7 @@ namespace paludis
public Exception
{
public:
- UnknownCommand(const std::string &) throw ();
+ UnknownCommand(const std::string &) noexcept;
};
class PALUDIS_VISIBLE CommandFactory :
diff --git a/src/clients/cave/exceptions.cc b/src/clients/cave/exceptions.cc
index b606320c5..4dc197fc6 100644
--- a/src/clients/cave/exceptions.cc
+++ b/src/clients/cave/exceptions.cc
@@ -31,46 +31,46 @@
using namespace paludis;
using namespace cave;
-NothingMatching::NothingMatching(const PackageDepSpec & spec) throw () :
+NothingMatching::NothingMatching(const PackageDepSpec & spec) noexcept :
Exception("Found nothing suitable matching '" + stringify(spec) + "'")
{
}
-NothingMatching::NothingMatching(const std::string & name) throw () :
+NothingMatching::NothingMatching(const std::string & name) noexcept :
Exception("Found nothing suitable matching '" + name + "'")
{
}
-NothingMatching::NothingMatching(const std::string & name, const std::string & extra_message) throw () :
+NothingMatching::NothingMatching(const std::string & name, const std::string & extra_message) noexcept :
Exception("Found nothing suitable matching '" + name + "'" + extra_message)
{
}
-NothingMatchingWithSuggestions::NothingMatchingWithSuggestions(const std::string & name, const std::string & suggestions) throw () :
+NothingMatchingWithSuggestions::NothingMatchingWithSuggestions(const std::string & name, const std::string & suggestions) noexcept :
NothingMatching(name, "; did you mean " + suggestions + "?")
{
}
-BeMoreSpecific::BeMoreSpecific(const PackageDepSpec & spec, const std::shared_ptr<const PackageIDSequence> & s) throw () :
+BeMoreSpecific::BeMoreSpecific(const PackageDepSpec & spec, const std::shared_ptr<const PackageIDSequence> & s) noexcept :
Exception("Found multiple suitable IDs matching '" + stringify(spec) + "': { '" + join(indirect_iterator(s->begin()),
indirect_iterator(s->end()), "', '") + "' }")
{
}
BeMoreSpecific::BeMoreSpecific(const PackageDepSpec & spec, const std::shared_ptr<const PackageIDSequence> & s,
- const std::string & extra_message) throw () :
+ const std::string & extra_message) noexcept :
Exception("Found multiple suitable IDs matching '" + stringify(spec) + "': { '" + join(indirect_iterator(s->begin()),
indirect_iterator(s->end()), "', '") + "' }. " + extra_message)
{
}
BadIDForCommand::BadIDForCommand(const PackageDepSpec & spec, const std::shared_ptr<const PackageID> & s,
- const std::string & r) throw () :
+ const std::string & r) noexcept :
Exception("Spec '" + stringify(spec) + "' resolves to ID '" + stringify(*s) + "', which " + r)
{
}
-BadRepositoryForCommand::BadRepositoryForCommand(const RepositoryName & name, const std::string & r) throw () :
+BadRepositoryForCommand::BadRepositoryForCommand(const RepositoryName & name, const std::string & r) noexcept :
Exception("Repository '" + stringify(name) + "' unsuitable: " + r)
{
}
diff --git a/src/clients/cave/exceptions.hh b/src/clients/cave/exceptions.hh
index 233c39329..f929acf77 100644
--- a/src/clients/cave/exceptions.hh
+++ b/src/clients/cave/exceptions.hh
@@ -36,25 +36,25 @@ namespace paludis
public Exception
{
public:
- NothingMatching(const PackageDepSpec &) throw ();
- NothingMatching(const std::string &) throw ();
- NothingMatching(const std::string &, const std::string &) throw ();
+ NothingMatching(const PackageDepSpec &) noexcept;
+ NothingMatching(const std::string &) noexcept;
+ NothingMatching(const std::string &, const std::string &) noexcept;
};
class PALUDIS_VISIBLE NothingMatchingWithSuggestions :
public NothingMatching
{
public:
- NothingMatchingWithSuggestions(const std::string &, const std::string &) throw ();
+ NothingMatchingWithSuggestions(const std::string &, const std::string &) noexcept;
};
class PALUDIS_VISIBLE BeMoreSpecific :
public Exception
{
public:
- BeMoreSpecific(const PackageDepSpec &, const std::shared_ptr<const PackageIDSequence> &) throw ();
+ BeMoreSpecific(const PackageDepSpec &, const std::shared_ptr<const PackageIDSequence> &) noexcept;
BeMoreSpecific(const PackageDepSpec &, const std::shared_ptr<const PackageIDSequence> &,
- const std::string & extra_message) throw ();
+ const std::string & extra_message) noexcept;
};
class PALUDIS_VISIBLE BadIDForCommand :
@@ -64,7 +64,7 @@ namespace paludis
BadIDForCommand(
const PackageDepSpec &,
const std::shared_ptr<const PackageID> &,
- const std::string & r) throw ();
+ const std::string & r) noexcept;
};
class PALUDIS_VISIBLE BadRepositoryForCommand :
@@ -73,7 +73,7 @@ namespace paludis
public:
BadRepositoryForCommand(
const RepositoryName &,
- const std::string & r) throw ();
+ const std::string & r) noexcept;
};
void nothing_matching_error(
diff --git a/src/clients/cave/format_string.cc b/src/clients/cave/format_string.cc
index 4802e9c6e..ee5d32b3e 100644
--- a/src/clients/cave/format_string.cc
+++ b/src/clients/cave/format_string.cc
@@ -29,7 +29,7 @@
using namespace paludis;
using namespace cave;
-FormatStringError::FormatStringError(const std::string & f, const std::string & m) throw () :
+FormatStringError::FormatStringError(const std::string & f, const std::string & m) noexcept :
Exception("Bad format string '" + f + "': " + m)
{
}
diff --git a/src/clients/cave/format_string.hh b/src/clients/cave/format_string.hh
index 72b6c8ad3..e07baf88a 100644
--- a/src/clients/cave/format_string.hh
+++ b/src/clients/cave/format_string.hh
@@ -34,7 +34,7 @@ namespace paludis
public Exception
{
public:
- FormatStringError(const std::string & f, const std::string & msg) throw ();
+ FormatStringError(const std::string & f, const std::string & msg) noexcept;
};
std::string format_string(