Fawkes API
Fawkes Development Version
sem_exceptions.h
1
2
/***************************************************************************
3
* sem_exceptions.h - exceptions thrown in semaphore utils, do NOT put your
4
* own application specific exceptions here!
5
*
6
* Generated: Tue Sep 19 15:19:05 2006
7
* Copyright 2005-2006 Tim Niemueller [www.niemueller.de]
8
*
9
****************************************************************************/
10
11
/* This program is free software; you can redistribute it and/or modify
12
* it under the terms of the GNU General Public License as published by
13
* the Free Software Foundation; either version 2 of the License, or
14
* (at your option) any later version. A runtime exception applies to
15
* this software (see LICENSE.GPL_WRE file mentioned below for details).
16
*
17
* This program is distributed in the hope that it will be useful,
18
* but WITHOUT ANY WARRANTY; without even the implied warranty of
19
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20
* GNU Library General Public License for more details.
21
*
22
* Read the full text in the LICENSE.GPL_WRE file in the doc directory.
23
*/
24
25
#ifndef _UTILS_IPC_SEM_EXCEPTIONS_H_
26
#define _UTILS_IPC_SEM_EXCEPTIONS_H_
27
28
#include <core/exception.h>
29
30
namespace
fawkes
{
31
32
/** Semaphore or semaphore set invalid */
33
class
SemInvalidException :
public
Exception
34
{
35
public
:
36
/** Constructor */
37
SemInvalidException
() :
Exception
(
"Semaphore or semaphore set invalid"
)
38
{
39
}
40
};
41
42
/** Cannot lock semaphore */
43
class
SemCannotLockException
:
public
Exception
44
{
45
public
:
46
/** Constructor */
47
SemCannotLockException
() :
Exception
(
"Cannot lock semaphore"
)
48
{
49
}
50
};
51
52
/** Cannot unlock semaphore */
53
class
SemCannotUnlockException
:
public
Exception
54
{
55
public
:
56
/** Constructor */
57
SemCannotUnlockException
() :
Exception
(
"Cannot unlock semaphore"
)
58
{
59
}
60
};
61
62
/** Cannot set value on semaphore */
63
class
SemCannotSetValException
:
public
Exception
64
{
65
public
:
66
/** Constructor */
67
SemCannotSetValException
() :
Exception
(
"Cannot set value"
)
68
{
69
}
70
};
71
72
}
// end namespace fawkes
73
74
#endif
fawkes::SemInvalidException::SemInvalidException
SemInvalidException()
Constructor.
Definition:
sem_exceptions.h:51
fawkes::SemCannotSetValException::SemCannotSetValException
SemCannotSetValException()
Constructor.
Definition:
sem_exceptions.h:74
fawkes::Exception::Exception
Exception()
Constructor for subclasses.
Definition:
exception.cpp:253
fawkes::SemCannotUnlockException
Cannot unlock semaphore.
Definition:
sem_exceptions.h:60
fawkes::SemCannotUnlockException::SemCannotUnlockException
SemCannotUnlockException()
Constructor.
Definition:
sem_exceptions.h:64
fawkes::SemCannotSetValException
Cannot set value on semaphore.
Definition:
sem_exceptions.h:70
fawkes
fawkes::SemCannotLockException::SemCannotLockException
SemCannotLockException()
Constructor.
Definition:
sem_exceptions.h:54
fawkes::SemCannotLockException
Cannot lock semaphore.
Definition:
sem_exceptions.h:50
fawkes::Exception
Definition:
exception.h:41
src
libs
utils
ipc
sem_exceptions.h
Generated by
1.8.17