diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-12-29 23:38:39 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2023-02-05 20:08:52 +0100 |
| commit | 8c867a69d4a93cf81b89a612764eb0be902b7407 (patch) | |
| tree | 32d6094dbb48322333799cd7451d7ae660a3ac2d /src/lib/exceptions.h | |
| parent | ef962e75de1ba175579080d6ac1c440b2edd5fa0 (diff) | |
Recover better errors from ext4.
Diffstat (limited to 'src/lib/exceptions.h')
| -rw-r--r-- | src/lib/exceptions.h | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/lib/exceptions.h b/src/lib/exceptions.h index 618a03f43..ed002d0a9 100644 --- a/src/lib/exceptions.h +++ b/src/lib/exceptions.h @@ -407,20 +407,25 @@ 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; } - 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; - boost::optional<int> _number; + boost::optional<int> _ext4_number; + boost::optional<int> _platform_number; }; |
