main page
modules
namespaces
classes
files
Gecode home
Generated on Thu Feb 14 2013 20:59:33 for Gecode by
doxygen
1.8.3.1
gecode
int
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
48
class
GECODE_VTABLE_EXPORT
OutOfLimits
:
public
Exception
{
49
public
:
51
OutOfLimits
(
const
char
* l);
52
};
53
55
class
GECODE_VTABLE_EXPORT
NotZeroOne
:
public
Exception
{
56
public
:
58
NotZeroOne
(
const
char
* l);
59
};
60
61
63
class
GECODE_VTABLE_EXPORT
VariableEmptyDomain
:
public
Exception
{
64
public
:
66
VariableEmptyDomain
(
const
char
* l);
67
};
68
70
class
GECODE_VTABLE_EXPORT
TooFewArguments
:
public
Exception
{
71
public
:
73
TooFewArguments
(
const
char
* l);
74
};
75
77
class
GECODE_VTABLE_EXPORT
ArgumentSizeMismatch
:
public
Exception
{
78
public
:
80
ArgumentSizeMismatch
(
const
char
* l);
81
};
82
84
class
GECODE_VTABLE_EXPORT
ArgumentSame
:
public
Exception
{
85
public
:
87
ArgumentSame
(
const
char
* l);
88
};
89
91
class
GECODE_VTABLE_EXPORT
UnknownRelation
:
public
Exception
{
92
public
:
94
UnknownRelation
(
const
char
* l);
95
};
96
98
class
GECODE_VTABLE_EXPORT
UnknownOperation
:
public
Exception
{
99
public
:
101
UnknownOperation
(
const
char
* l);
102
};
103
105
class
GECODE_VTABLE_EXPORT
IllegalOperation
:
public
Exception
{
106
public
:
108
IllegalOperation
(
const
char
* l);
109
};
110
112
class
GECODE_VTABLE_EXPORT
UnknownBranching
:
public
Exception
{
113
public
:
115
UnknownBranching
(
const
char
* l);
116
};
117
119
class
GECODE_VTABLE_EXPORT
ValOfUnassignedVar
:
public
Exception
{
120
public
:
122
ValOfUnassignedVar
(
const
char
* l);
123
};
124
126
class
GECODE_VTABLE_EXPORT
NotYetFinalized
:
public
Exception
{
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
144
OutOfLimits::OutOfLimits
(
const
char
* l)
145
:
Exception
(l,
"Number out of limits"
) {}
146
147
inline
148
VariableEmptyDomain::VariableEmptyDomain
(
const
char
* l)
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
157
TooFewArguments::TooFewArguments
(
const
char
* l)
158
:
Exception
(l,
"Passed argument array has too few elements"
) {}
159
160
inline
161
ArgumentSizeMismatch::ArgumentSizeMismatch
(
const
char
* l)
162
:
Exception
(l,
"Sizes of argument arrays mismatch"
) {}
163
164
inline
165
ArgumentSame::ArgumentSame
(
const
char
* l)
166
:
Exception
(l,
"Argument array contains same variable multiply"
) {}
167
168
169
inline
170
UnknownRelation::UnknownRelation
(
const
char
* l)
171
:
Exception
(l,
"Unknown relation type"
) {}
172
173
inline
174
UnknownOperation::UnknownOperation
(
const
char
* l)
175
:
Exception
(l,
"Unknown operation type"
) {}
176
177
inline
178
IllegalOperation::IllegalOperation
(
const
char
* l)
179
:
Exception
(l,
"Illegal operation type"
) {}
180
181
inline
182
UnknownBranching::UnknownBranching
(
const
char
* l)
183
:
Exception
(l,
"Unknown branching type"
) {}
184
185
inline
186
ValOfUnassignedVar::ValOfUnassignedVar
(
const
char
* l)
187
:
Exception
(l,
"Attempt to access value of unassigned variable"
) {}
188
189
inline
190
NotYetFinalized::NotYetFinalized
(
const
char
* l)
191
:
Exception
(l,
"Tuple set not yet finalized"
) {}
192
193
}}
194
195
// STATISTICS: int-other
196