diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-12-20 21:45:21 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-12-20 21:45:21 +0100 |
| commit | 95ba4aff616a9e0c6ca85e7a3c86a5606afa2e45 (patch) | |
| tree | f7566be6cb57149c525fd126e838a87b933c4445 /src/lib/exceptions.h | |
| parent | 915128d7a79dc0cb180489ba2110841d0fe17907 (diff) | |
Tidy up NetworkError.
Diffstat (limited to 'src/lib/exceptions.h')
| -rw-r--r-- | src/lib/exceptions.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/exceptions.h b/src/lib/exceptions.h index a8f095c22..2cae86acc 100644 --- a/src/lib/exceptions.h +++ b/src/lib/exceptions.h @@ -253,19 +253,19 @@ public: class NetworkError : public std::runtime_error { public: - explicit NetworkError (std::string s, std::string d = ""); + explicit NetworkError (std::string s, boost::optional<std::string> d = boost::optional<std::string>()); std::string summary () const { return _summary; } - std::string detail () const { + boost::optional<std::string> detail () const { return _detail; } private: std::string _summary; - std::string _detail; + boost::optional<std::string> _detail; }; |
