libzypp
17.7.0
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
//
33
class
MutexException
:
public
zypp::Exception
34
{
35
public
:
36
MutexException
()
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
*/
zypp::thread::MutexException::MutexException
MutexException(const std::string &msg)
Definition:
MutexException.h:40
zypp::Exception
Base class for Exception.
Definition:
Exception.h:145
zypp::Exception::strErrno
static std::string strErrno(int errno_r)
Make a string from errno_r.
Definition:
Exception.cc:151
zypp::thread::MutexException
Exception type thrown on mutex errors.
Definition:
MutexException.h:33
zypp::thread::MutexException::MutexException
MutexException()
Definition:
MutexException.h:36
Exception.h
zypp
Easy-to use interface to the ZYPP dependency resolver.
Definition:
CodePitfalls.doc:1
zypp::thread::MutexException::~MutexException
virtual ~MutexException()
Definition:
MutexException.h:44
zypp::Exception::msg
const std::string & msg() const
Return the message string provided to the ctor.
Definition:
Exception.h:195
zypp
thread
MutexException.h
Generated by
1.8.17