diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-12-20 21:45:21 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-12-21 21:03:07 +0100 |
| commit | 531f206850224bf416a4d9854db18caa9c7b33aa (patch) | |
| tree | 6e12f8ace341075bd1b196459ab23d64741e477c /src/lib/exceptions.h | |
| parent | d98702bd89f418d03d3184732edff32d2ca213be (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; }; |
