Fawkes API  Fawkes Development Version
software.h
1 
2 /***************************************************************************
3  * software.h - basic software exceptions
4  *
5  * Created: Wed Oct 04 18:37:35 2006
6  * Copyright 2006-2009 Tim Niemueller [www.niemueller.de]
7  *
8  ****************************************************************************/
9 
10 /* This program is free software; you can redistribute it and/or modify
11  * it under the terms of the GNU General Public License as published by
12  * the Free Software Foundation; either version 2 of the License, or
13  * (at your option) any later version. A runtime exception applies to
14  * this software (see LICENSE.GPL_WRE file mentioned below for details).
15  *
16  * This program is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19  * GNU Library General Public License for more details.
20  *
21  * Read the full text in the LICENSE.GPL_WRE file in the doc directory.
22  */
23 
24 #ifndef __CORE_EXCEPTIONS_SOFTWARE_H_
25 #define __CORE_EXCEPTIONS_SOFTWARE_H_
26 
27 #include <core/exception.h>
28 
29 namespace fawkes {
30 #if 0 /* just to make Emacs auto-indent happy */
31 }
32 #endif
33 
35  public:
36  NullPointerException(const char *format, ...) throw();
37 };
38 
39 
41  public:
42  DivisionByZeroException(const char *format, ...) throw();
43 };
44 
45 
47  public:
48  TypeMismatchException(const char *format, ...) throw();
49 };
50 
51 
53  public:
54  UnknownTypeException(const char *format, ...) throw();
55 };
56 
57 
59  public:
60  DestructionInProgressException(const char *format, ...) throw();
61 };
62 
63 
64 class NotLockedException : public Exception {
65  public:
66  NotLockedException(const char *format, ...) throw();
67 };
68 
69 
71  public:
72  NonPointerTypeExpectedException(const char *format, ...) throw();
73 };
74 
75 
77  public:
78  MissingParameterException(const char *format, ...) throw();
79 };
80 
81 
83  public:
84  IllegalArgumentException(const char *format, ...) throw();
85 };
86 
87 
89  public:
90  OutOfBoundsException(const char *msg) throw();
91  OutOfBoundsException(const char *msg, float val,
92  float min, float max) throw();
93 };
94 
95 
97  public:
98  AccessViolationException(const char *format, ...) throw();
99 };
100 
101 
103  public:
104  SyntaxErrorException(const char *format, ...) throw();
105 };
106 
108  public:
109  NotImplementedException(const char *format, ...) throw();
110 };
111 
112 
113 } // end namespace fawkes
114 
115 #endif
NullPointerException(const char *format,...)
Constructor.
Definition: software.cpp:42
Fawkes library namespace.
Called method has not been implemented.
Definition: software.h:107
A NULL pointer was supplied where not allowed.
Definition: software.h:34
Base class for exceptions in Fawkes.
Definition: exception.h:36
Non-pointer type expected.
Definition: software.h:70
Operation on unlocked object.
Definition: software.h:64
Index out of bounds.
Definition: software.h:88
Division by zero.
Definition: software.h:40
Expected parameter is missing.
Definition: software.h:82
Access violates policy.
Definition: software.h:96
Expected parameter is missing.
Definition: software.h:76