Fawkes API  Fawkes Development Version
shm_exceptions.h
1 
2 /***************************************************************************
3  * shm_exceptions.h - exceptions thrown in shmem image utils, do NOT put
4  * your own application specific exceptions here!
5  *
6  * Generated: Thu Feb 09 13:06:52 2006
7  * Copyright 2005-2007 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 _FIREVISION_FVUTILS_IPC_SHM_EXCEPTIONS_H_
26 #define _FIREVISION_FVUTILS_IPC_SHM_EXCEPTIONS_H_
27 
28 #include <core/exception.h>
29 
30 namespace firevision {
31 
32 /** Throw if an inconsistent image was found. */
33 class InconsistentImageException : public fawkes::Exception
34 {
35 public:
36  /** Constructor.
37  * @param msg additional message
38  */
39  InconsistentImageException(const char *msg) : fawkes::Exception(msg)
40  {
41  }
42 };
43 
44 /** Throw if an inconsistent LUT was found. */
45 class InconsistentLUTException : public fawkes::Exception
46 {
47 public:
48  /** Constructor.
49  * @param msg additional message
50  */
51  InconsistentLUTException(const char *msg) : fawkes::Exception(msg)
52  {
53  }
54 };
55 
56 } // end namespace firevision
57 
58 #endif
fawkes::Exception::Exception
Exception()
Constructor for subclasses.
Definition: exception.cpp:253
fawkes
firevision::InconsistentImageException::InconsistentImageException
InconsistentImageException(const char *msg)
Constructor.
Definition: shm_exceptions.h:53
firevision::InconsistentLUTException::InconsistentLUTException
InconsistentLUTException(const char *msg)
Constructor.
Definition: shm_exceptions.h:58
fawkes::Exception
Definition: exception.h:41