projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d0d2d6a
)
Add some more DecodeError constructors.
author
Carl Hetherington
<cth@carlh.net>
Wed, 23 Jun 2021 15:17:45 +0000
(17:17 +0200)
committer
Carl Hetherington
<cth@carlh.net>
Wed, 23 Jun 2021 15:17:45 +0000
(17:17 +0200)
src/lib/exceptions.h
patch
|
blob
|
history
diff --git
a/src/lib/exceptions.h
b/src/lib/exceptions.h
index 93be3999b29a84feeda8e5584052c29872753aaf..5cbf6994154dadaeda169130cd82ac2ddaf48637 100644
(file)
--- a/
src/lib/exceptions.h
+++ b/
src/lib/exceptions.h
@@
-50,12
+50,20
@@
public:
{}
DecodeError (std::string function, std::string caller)
{}
DecodeError (std::string function, std::string caller)
- : std::runtime_error (String::compose("%1 failed [%2", function, caller))
+ : std::runtime_error (String::compose("%1 failed [%2
]
", function, caller))
{}
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 caller, int error)
: std::runtime_error (String::compose("%1 failed [%2] (%3)", function, caller, 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 caller, int error, boost::filesystem::path file)
+ : std::runtime_error (String::compose("%1 failed [%2] (%3) (%4)", function, caller, error, file.string()))
+ {}
};
};