fixup! Reset dump values when pause function is called
[platform/core/api/audio-io.git] / include / CAudioError.h
index b508fe8..3c6bf7c 100644 (file)
@@ -30,7 +30,6 @@ namespace tizen_media_audio {
      */
 class CAudioError : public std::exception {
     public:
-        /* Enums Definition */
         enum class EError : unsigned int {
             ERROR_NONE,
 
@@ -61,28 +60,18 @@ class CAudioError : public std::exception {
             ERROR_MAX
         };
 
-        /* Constants Definition */
-        static const unsigned int MSG_LENGTH = 512;
-
-        /* Constructor & Destructor */
-        explicit CAudioError(EError err);
+        static constexpr auto MSG_LENGTH = 512;
         CAudioError(EError err, const char* msg, const char* file, const char* func, int line);
-        ~CAudioError() = default;
-
-        const char *what() const noexcept override {
-            return __mFullMsg.c_str();
-        }
 
+        const char *what() const noexcept override;
         const char* getErrorMsg() const noexcept;
-        const EError getError() const noexcept;
+        EError getError() const noexcept;
 
 private:
         static const char* __convertErrorToString(EError err) noexcept;
 
         EError __mError;
-        std::string __mMsg;
-        std::string __mFullMsg;
-
+        std::runtime_error __mFullMsg;
     };