projects
/
dcpomatic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Recover better errors from ext4.
[dcpomatic.git]
/
src
/
lib
/
exceptions.h
diff --git
a/src/lib/exceptions.h
b/src/lib/exceptions.h
index 7c9509800ed3a40bf35f2cd88ce45755c44a03f8..ed002d0a9a1ea7856090be16c246490a2ad35b14 100644
(file)
--- a/
src/lib/exceptions.h
+++ b/
src/lib/exceptions.h
@@
-335,6
+335,15
@@
public:
};
};
+class CPLNotFoundError : public DCPError
+{
+public:
+ CPLNotFoundError(std::string id)
+ : DCPError(String::compose("CPL %1 not found", id))
+ {}
+};
+
+
class InvalidSignerError : public std::runtime_error
{
public:
class InvalidSignerError : public std::runtime_error
{
public:
@@
-398,20
+407,25
@@
public:
class CopyError : public std::runtime_error
{
public:
class CopyError : public std::runtime_error
{
public:
- CopyError (std::string s, boost::optional<int>
n
= boost::optional<int>());
+ CopyError (std::string s, boost::optional<int>
ext4_error = boost::optional<int>(), boost::optional<int> platform_error
= boost::optional<int>());
virtual ~CopyError () throw () {}
std::string message () const {
return _message;
}
virtual ~CopyError () throw () {}
std::string message () const {
return _message;
}
- boost::optional<int> number () const {
- return _number;
+ boost::optional<int> ext4_number() const {
+ return _ext4_number;
+ }
+
+ boost::optional<int> platform_number() const {
+ return _platform_number;
}
private:
std::string _message;
}
private:
std::string _message;
- boost::optional<int> _number;
+ boost::optional<int> _ext4_number;
+ boost::optional<int> _platform_number;
};
};