summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2020-08-11 00:56:37 +0200
committerCarl Hetherington <cth@carlh.net>2020-09-13 20:22:43 +0200
commit49fcfee3b68282cefeefff034adeb458a80d1b4f (patch)
tree1c85ae9b9e17fd09b7fd399492afbee43bc01fb0
parent580485c27e93deb0d090cd430955070a83cf45ad (diff)
Add error code to Fastvideo exceptions.
-rw-r--r--src/lib/exceptions.cc4
-rw-r--r--src/lib/exceptions.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/exceptions.cc b/src/lib/exceptions.cc
index 4df170717..22352017c 100644
--- a/src/lib/exceptions.cc
+++ b/src/lib/exceptions.cc
@@ -139,8 +139,8 @@ VerifyError::VerifyError (string m, int n)
}
-FastvideoError::FastvideoError (string s)
- : runtime_error (String::compose("Fastvideo error in %1", s))
+FastvideoError::FastvideoError (string s, int code)
+ : runtime_error (String::compose("Fastvideo error in %1 (%2)", s, code))
{
}
diff --git a/src/lib/exceptions.h b/src/lib/exceptions.h
index acb2ea9e6..c7389a5f2 100644
--- a/src/lib/exceptions.h
+++ b/src/lib/exceptions.h
@@ -383,7 +383,7 @@ public:
class FastvideoError : public std::runtime_error
{
public:
- explicit FastvideoError (std::string s);
+ explicit FastvideoError (std::string s, int code=0);
};
#endif