From 899a094acbd9523c65432a9cb9c55bd596ddc2bc Mon Sep 17 00:00:00 2001 From: Aleksander Zdyb Date: Tue, 23 Dec 2014 14:11:15 +0100 Subject: [PATCH] Inherit from Exception in FileLockAcquiringException Change-Id: I40eb3f6b906f34261f8c6b6596e0afb503e41e7a --- src/common/exceptions/FileLockAcquiringException.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 { -- 2.7.4