libzypp  13.10.6
MutexException.h
Go to the documentation of this file.
1 /*---------------------------------------------------------------------\
2 | ____ _ __ __ ___ |
3 | |__ / \ / / . \ . \ |
4 | / / \ V /| _/ _/ |
5 | / /__ | | | | | | |
6 | /_____||_| |_| |_| |
7 | |
8 \---------------------------------------------------------------------*/
12 #ifndef ZYPP_THREAD_MUTEXEXCEPTION_H
13 #define ZYPP_THREAD_MUTEXEXCEPTION_H
14 
15 #include "zypp/base/Exception.h"
16 
17 
19 namespace zypp
20 {
21 
23  namespace thread
24  {
25 
26 
28  //
29  // CLASS NAME : MutexException
30  //
34  {
35  public:
37  : zypp::Exception( ::zypp::Exception::strErrno(errno))
38  {}
39 
40  MutexException(const std::string &msg)
41  : zypp::Exception( msg)
42  {}
43 
44  virtual ~MutexException() throw()
45  {}
46  };
47 
48 
50  } // namespace thread
52 
54 } // namespace zypp
56 
57 #endif // ZYPP_THREAD_MUTEXEXCEPTION_H
58 /*
59 ** vim: set ts=2 sts=2 sw=2 ai et:
60 */
const std::string & msg() const
Return the message string provided to the ctor.
Definition: Exception.h:185
static std::string strErrno(int errno_r)
Make a string from errno_r.
Definition: Exception.cc:124
Exception type thrown on mutex errors.
Base class for Exception.
Definition: Exception.h:143
MutexException(const std::string &msg)