Fawkes API  Fawkes Development Version
shm_exceptions.h
1 
2 /***************************************************************************
3  * shm_exceptions.h - exceptions thrown in shmem utils, do NOT put your own
4  * application specific exceptions here!
5  *
6  * Created: Thu Feb 09 13:06:52 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_SHM_EXCEPTIONS_H_
26 #define __UTILS_IPC_SHM_EXCEPTIONS_H_
27 
28 #include <core/exception.h>
29 
30 namespace fawkes {
31 
32 
34 {
35  public:
36  ShmCouldNotAttachException(const char *msg);
37 };
38 
39 
41 {
42  public:
44 };
45 
46 
48 {
49  public:
50  ShmInconsistentSegmentSizeException(unsigned int desired_mem, unsigned int act_mem);
51 };
52 
53 
55 {
56  public:
58 };
59 
60 
62 {
63  public:
65 };
66 
67 
69 {
70  public:
72 };
73 
75 {
76  public:
78 };
79 
80 
81 } // end namespace fawkes
82 
83 #endif
Fawkes library namespace.
The address points out of the shared memory.
ShmCouldNotAttachException(const char *msg)
Constructor.
Base class for exceptions in Fawkes.
Definition: exception.h:36
Could not attach to shared memory segment.
The shared memory is set adress-dependend but could not be opened at the appropriate address...
No shared memory header set before attach()
Shared memory segment does not exist.
The pointer does not point inside the shared memory.