Generated on Thu Feb 21 2013 23:11:44 for Gecode by doxygen 1.8.3.1
exception.hpp
Go to the documentation of this file.
1 /* -*- mode: C++; c-basic-offset: 2; indent-tabs-mode: nil -*- */
2 /*
3  * Main authors:
4  * Christian Schulte <schulte@gecode.org>
5  *
6  * Copyright:
7  * Christian Schulte, 2004
8  *
9  * Last modified:
10  * $Date: 2009-03-02 20:08:11 +1100 (Mon, 02 Mar 2009) $ by $Author: schulte $
11  * $Revision: 8320 $
12  *
13  * This file is part of Gecode, the generic constraint
14  * development environment:
15  * http://www.gecode.org
16  *
17  * Permission is hereby granted, free of charge, to any person obtaining
18  * a copy of this software and associated documentation files (the
19  * "Software"), to deal in the Software without restriction, including
20  * without limitation the rights to use, copy, modify, merge, publish,
21  * distribute, sublicense, and/or sell copies of the Software, and to
22  * permit persons to whom the Software is furnished to do so, subject to
23  * the following conditions:
24  *
25  * The above copyright notice and this permission notice shall be
26  * included in all copies or substantial portions of the Software.
27  *
28  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
29  * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
30  * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
31  * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
32  * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
33  * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
34  * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
35  *
36  */
37 
38 namespace Gecode { namespace Int {
39 
46 
49  public:
51  OutOfLimits(const char* l);
52  };
53 
56  public:
58  NotZeroOne(const char* l);
59  };
60 
61 
64  public:
66  VariableEmptyDomain(const char* l);
67  };
68 
71  public:
73  TooFewArguments(const char* l);
74  };
75 
78  public:
80  ArgumentSizeMismatch(const char* l);
81  };
82 
85  public:
87  ArgumentSame(const char* l);
88  };
89 
92  public:
94  UnknownRelation(const char* l);
95  };
96 
99  public:
101  UnknownOperation(const char* l);
102  };
103 
106  public:
108  IllegalOperation(const char* l);
109  };
110 
113  public:
115  UnknownBranching(const char* l);
116  };
117 
120  public:
122  ValOfUnassignedVar(const char* l);
123  };
124 
127  public:
129  NotYetFinalized(const char* l);
130  };
131 
133 
134 
135 
136 
137 
138  /*
139  * Classes for exceptions raised by integer module
140  *
141  */
142 
143  inline
145  : Exception(l,"Number out of limits") {}
146 
147  inline
149  : Exception(l,"Attempt to create variable with empty domain") {}
150 
151  inline
152  NotZeroOne::NotZeroOne(const char* l)
153  : Exception(l,"Not a zero/one integer value") {}
154 
155 
156  inline
158  : Exception(l,"Passed argument array has too few elements") {}
159 
160  inline
162  : Exception(l,"Sizes of argument arrays mismatch") {}
163 
164  inline
166  : Exception(l,"Argument array contains same variable multiply") {}
167 
168 
169  inline
171  : Exception(l,"Unknown relation type") {}
172 
173  inline
175  : Exception(l,"Unknown operation type") {}
176 
177  inline
179  : Exception(l,"Illegal operation type") {}
180 
181  inline
183  : Exception(l,"Unknown branching type") {}
184 
185  inline
187  : Exception(l,"Attempt to access value of unassigned variable") {}
188 
189  inline
191  : Exception(l,"Tuple set not yet finalized") {}
192 
193 }}
194 
195 // STATISTICS: int-other
196