aboutsummaryrefslogtreecommitdiff
path: root/src/clients/cave/exceptions.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/clients/cave/exceptions.cc')
-rw-r--r--src/clients/cave/exceptions.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/clients/cave/exceptions.cc b/src/clients/cave/exceptions.cc
index c207b2ef4..b606320c5 100644
--- a/src/clients/cave/exceptions.cc
+++ b/src/clients/cave/exceptions.cc
@@ -57,6 +57,13 @@ BeMoreSpecific::BeMoreSpecific(const PackageDepSpec & spec, const std::shared_pt
{
}
+BeMoreSpecific::BeMoreSpecific(const PackageDepSpec & spec, const std::shared_ptr<const PackageIDSequence> & s,
+ const std::string & extra_message) throw () :
+ 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 () :
Exception("Spec '" + stringify(spec) + "' resolves to ID '" + stringify(*s) + "', which " + r)