From 4d6c8aaf0167cde3bb63e9014604243bdc47b1a1 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 14 Apr 2020 20:16:44 +0200 Subject: s/DCPReadError/ReadError/g --- src/exceptions.h | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'src/exceptions.h') diff --git a/src/exceptions.h b/src/exceptions.h index 770bd916..cd4f5fbb 100644 --- a/src/exceptions.h +++ b/src/exceptions.h @@ -91,20 +91,21 @@ public: {} }; -/** @class DCPReadError - * @brief A DCP read exception + +/** @class ReadError + * @brief Any error that occurs when reading data from a DCP. */ -class DCPReadError : public std::runtime_error +class ReadError : public std::runtime_error { public: - explicit DCPReadError (std::string message) + explicit ReadError (std::string message) : std::runtime_error(message) , _message(message) {} - DCPReadError (std::string message, std::string detail); + ReadError (std::string message, std::string detail); - ~DCPReadError() throw () {} + ~ReadError() throw () {} std::string message () const { return _message; @@ -119,7 +120,8 @@ private: boost::optional _detail; }; -class BadContentKindError : public DCPReadError + +class BadContentKindError : public ReadError { public: BadContentKindError (std::string content_kind); -- cgit v1.2.3