Generated on Sat Feb 7 2015 02:01:16 for Gecode by doxygen 1.8.9.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: 2013-03-07 02:18:29 +0100 (Thu, 07 Mar 2013) $ by $Author: mears $
11  * $Revision: 13455 $
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  UnknownReifyMode(const char* l);
123  };
124 
127  public:
129  ValOfUnassignedVar(const char* l);
130  };
131 
134  public:
136  NotYetFinalized(const char* l);
137  };
138 
141  public:
143  LDSBUnbranchedVariable(const char* l);
144  };
145 
148  public:
150  LDSBBadValueSelection(const char* l);
151  };
152 
154 
155 
156 
157 
158 
159  /*
160  * Classes for exceptions raised by integer module
161  *
162  */
163 
164  inline
166  : Exception(l,"Number out of limits") {}
167 
168  inline
170  : Exception(l,"Attempt to create variable with empty domain") {}
171 
172  inline
174  : Exception(l,"Not a zero/one integer value") {}
175 
176 
177  inline
179  : Exception(l,"Passed argument array has too few elements") {}
180 
181  inline
183  : Exception(l,"Sizes of argument arrays mismatch") {}
184 
185  inline
187  : Exception(l,"Argument array contains same variable multiply") {}
188 
189 
190  inline
192  : Exception(l,"Unknown relation type") {}
193 
194  inline
196  : Exception(l,"Unknown operation type") {}
197 
198  inline
200  : Exception(l,"Illegal operation type") {}
201 
202  inline
204  : Exception(l,"Unknown branching type") {}
205 
206  inline
208  : Exception(l,"Unknown reification mode") {}
209 
210  inline
212  : Exception(l,"Attempt to access value of unassigned variable") {}
213 
214  inline
216  : Exception(l,"Tuple set not yet finalized") {}
217 
218  inline
220  : Exception(l,"Variable in symmetry not branched on") {}
221 
222  inline
224  : Exception(l,"Value selection incomatible with LDSB") {}
225 
226 }}
227 
228 // STATISTICS: int-other
229 
ArgumentSame(const char *l)
Initialize with location l.
Definition: exception.hpp:186
VariableEmptyDomain(const char *l)
Initialize with location l.
Definition: exception.hpp:169
NNF * l
Left subtree.
Definition: bool-expr.cpp:244
Exception: Value out of limits
Definition: exception.hpp:48
Exception: Too few arguments available in argument array
Definition: exception.hpp:70
Exception: Unknown operation passed as argument
Definition: exception.hpp:98
UnknownRelation(const char *l)
Initialize with location l.
Definition: exception.hpp:191
UnknownReifyMode(const char *l)
Initialize with location l.
Definition: exception.hpp:207
ArgumentSizeMismatch(const char *l)
Initialize with location l.
Definition: exception.hpp:182
Exception: Tuple set not yet finalized
Definition: exception.hpp:133
UnknownBranching(const char *l)
Initialize with location l.
Definition: exception.hpp:203
LDSBUnbranchedVariable(const char *l)
Initialize with location l.
Definition: exception.hpp:219
OutOfLimits(const char *l)
Initialize with location l.
Definition: exception.hpp:165
TooFewArguments(const char *l)
Initialize with location l.
Definition: exception.hpp:178
Exception: Unknown relation passed as argument
Definition: exception.hpp:91
Exception: Unknown value or variable selection passed as argument
Definition: exception.hpp:112
ValOfUnassignedVar(const char *l)
Initialize with location l.
Definition: exception.hpp:211
Exception: Variable created with empty domain
Definition: exception.hpp:63
Exception: Illegal operation passed as argument
Definition: exception.hpp:105
Exception: Variable in symmetry not branched on
Definition: exception.hpp:140
UnknownOperation(const char *l)
Initialize with location l.
Definition: exception.hpp:195
NotZeroOne(const char *l)
Initialize with location l.
Definition: exception.hpp:173
Exception: Value selection incompatible with LDSB
Definition: exception.hpp:147
Exception: Attempt to access value of unassigned variable
Definition: exception.hpp:126
Exception: Base-class for exceptions
Definition: exception.hpp:46
IllegalOperation(const char *l)
Initialize with location l.
Definition: exception.hpp:199
Exception: Arguments contain same variable multiply
Definition: exception.hpp:84
NotYetFinalized(const char *l)
Initialize with location l.
Definition: exception.hpp:215
Exception: Not 0/1 integer
Definition: exception.hpp:55
Exception: Unknown reification mode passed as argument
Definition: exception.hpp:119
Gecode toplevel namespace
#define GECODE_VTABLE_EXPORT
Definition: support.hh:76
Exception: Arguments are of different size
Definition: exception.hpp:77
LDSBBadValueSelection(const char *l)
Initialize with location l.
Definition: exception.hpp:223