From: Aleksander Zdyb Date: Tue, 23 Dec 2014 13:11:15 +0000 (+0100) Subject: Inherit from Exception in FileLockAcquiringException X-Git-Tag: accepted/tizen/common/20150119.084431~49 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=899a094acbd9523c65432a9cb9c55bd596ddc2bc;p=platform%2Fcore%2Fsecurity%2Fcynara.git Inherit from Exception in FileLockAcquiringException Change-Id: I40eb3f6b906f34261f8c6b6596e0afb503e41e7a --- diff --git a/src/common/exceptions/FileLockAcquiringException.h b/src/common/exceptions/FileLockAcquiringException.h index 44bc54a..4640719 100644 --- a/src/common/exceptions/FileLockAcquiringException.h +++ b/src/common/exceptions/FileLockAcquiringException.h @@ -30,12 +30,13 @@ namespace Cynara { -class FileLockAcquiringException { +class FileLockAcquiringException : public Exception { public: FileLockAcquiringException(const int errNumber) : m_errno(errNumber) { m_message = "File lock acquiring error [" + std::to_string(errorNumber()) + "]" + " <" + errorString() + ">"; }; + virtual ~FileLockAcquiringException() {}; const std::string &message(void) const {