X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=include%2FCAudioError.h;h=3c6bf7c829c6bd49ebe88b0e5502f1b91fc8401a;hb=HEAD;hp=e6c98ebdbe5baf7512d3be5ee45fd79bde9dac94;hpb=03f2bd35450c2e98c4b561284a38cc335556c514;p=platform%2Fcore%2Fapi%2Faudio-io.git diff --git a/include/CAudioError.h b/include/CAudioError.h index e6c98eb..3c6bf7c 100644 --- a/include/CAudioError.h +++ b/include/CAudioError.h @@ -30,7 +30,6 @@ namespace tizen_media_audio { */ class CAudioError : public std::exception { public: - /* Enums Definition */ enum class EError : unsigned int { ERROR_NONE, @@ -61,27 +60,18 @@ class CAudioError : public std::exception { ERROR_MAX }; - /* Constants Definition */ - static constexpr unsigned int MSG_LENGTH = 512; - - /* Constructor & Destructor */ + 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; };