summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2024-06-10 22:55:19 +0200
committerCarl Hetherington <cth@carlh.net>2024-06-10 22:55:19 +0200
commit2a4d704fbd7653e9682aa1c10cbe1dfd093fe710 (patch)
treec249aeb9a672181f416dce022eb71e02fa75da5f
parent2d89772ba5b5bc3b2e010b3bbbafe2efa9300353 (diff)
Make parameter "caller" more generic.
-rw-r--r--src/lib/exceptions.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/lib/exceptions.h b/src/lib/exceptions.h
index 10231f59a..21290eba7 100644
--- a/src/lib/exceptions.h
+++ b/src/lib/exceptions.h
@@ -49,20 +49,20 @@ public:
: std::runtime_error (s)
{}
- DecodeError (std::string function, std::string caller)
- : std::runtime_error (String::compose("%1 failed [%2]", function, caller))
+ DecodeError (std::string function, std::string detail)
+ : std::runtime_error (String::compose("%1 failed [%2]", function, detail))
{}
- DecodeError (std::string function, std::string caller, int error)
- : std::runtime_error (String::compose("%1 failed [%2] (%3)", function, caller, error))
+ DecodeError (std::string function, std::string detail, int error)
+ : std::runtime_error (String::compose("%1 failed [%2] (%3)", function, detail, error))
{}
- DecodeError (std::string function, std::string caller, boost::filesystem::path file)
- : std::runtime_error (String::compose("%1 failed [%2] (%3)", function, caller, file.string()))
+ DecodeError (std::string function, std::string detail, boost::filesystem::path file)
+ : std::runtime_error (String::compose("%1 failed [%2] (%3)", function, detail, file.string()))
{}
- DecodeError (std::string function, std::string caller, int error, boost::filesystem::path file)
- : std::runtime_error (String::compose("%1 failed [%2] (%3) (%4)", function, caller, error, file.string()))
+ DecodeError (std::string function, std::string detail, int error, boost::filesystem::path file)
+ : std::runtime_error (String::compose("%1 failed [%2] (%3) (%4)", function, detail, error, file.string()))
{}
};