exception.hpp
Go to the documentation of this file.00001 /* -*- mode: C++; c-basic-offset: 2; indent-tabs-mode: nil -*- */ 00002 /* 00003 * Main authors: 00004 * Christian Schulte <schulte@gecode.org> 00005 * 00006 * Copyright: 00007 * Christian Schulte, 2004 00008 * 00009 * This file is part of Gecode, the generic constraint 00010 * development environment: 00011 * http://www.gecode.org 00012 * 00013 * Permission is hereby granted, free of charge, to any person obtaining 00014 * a copy of this software and associated documentation files (the 00015 * "Software"), to deal in the Software without restriction, including 00016 * without limitation the rights to use, copy, modify, merge, publish, 00017 * distribute, sublicense, and/or sell copies of the Software, and to 00018 * permit persons to whom the Software is furnished to do so, subject to 00019 * the following conditions: 00020 * 00021 * The above copyright notice and this permission notice shall be 00022 * included in all copies or substantial portions of the Software. 00023 * 00024 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 00025 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 00026 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 00027 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 00028 * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 00029 * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 00030 * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 00031 * 00032 */ 00033 00034 namespace Gecode { namespace Int { 00035 00042 00044 class GECODE_INT_EXPORT OutOfLimits : public Exception { 00045 public: 00047 OutOfLimits(const char* l); 00048 }; 00049 00051 class GECODE_INT_EXPORT NotZeroOne : public Exception { 00052 public: 00054 NotZeroOne(const char* l); 00055 }; 00056 00057 00059 class GECODE_INT_EXPORT VariableEmptyDomain : public Exception { 00060 public: 00062 VariableEmptyDomain(const char* l); 00063 }; 00064 00066 class GECODE_INT_EXPORT TooFewArguments : public Exception { 00067 public: 00069 TooFewArguments(const char* l); 00070 }; 00071 00073 class GECODE_INT_EXPORT ArgumentSizeMismatch : public Exception { 00074 public: 00076 ArgumentSizeMismatch(const char* l); 00077 }; 00078 00080 class GECODE_INT_EXPORT ArgumentSame : public Exception { 00081 public: 00083 ArgumentSame(const char* l); 00084 }; 00085 00087 class GECODE_INT_EXPORT UnknownRelation : public Exception { 00088 public: 00090 UnknownRelation(const char* l); 00091 }; 00092 00094 class GECODE_INT_EXPORT UnknownOperation : public Exception { 00095 public: 00097 UnknownOperation(const char* l); 00098 }; 00099 00101 class GECODE_INT_EXPORT IllegalOperation : public Exception { 00102 public: 00104 IllegalOperation(const char* l); 00105 }; 00106 00108 class GECODE_INT_EXPORT UnknownBranching : public Exception { 00109 public: 00111 UnknownBranching(const char* l); 00112 }; 00113 00115 class GECODE_INT_EXPORT UnknownReifyMode : public Exception { 00116 public: 00118 UnknownReifyMode(const char* l); 00119 }; 00120 00122 class GECODE_INT_EXPORT ValOfUnassignedVar : public Exception { 00123 public: 00125 ValOfUnassignedVar(const char* l); 00126 }; 00127 00129 class GECODE_INT_EXPORT UninitializedTupleSet : public Exception { 00130 public: 00132 UninitializedTupleSet(const char* l); 00133 }; 00134 00136 class GECODE_INT_EXPORT NotYetFinalized : public Exception { 00137 public: 00139 NotYetFinalized(const char* l); 00140 }; 00141 00143 class GECODE_INT_EXPORT AlreadyFinalized : public Exception { 00144 public: 00146 AlreadyFinalized(const char* l); 00147 }; 00148 00150 class GECODE_INT_EXPORT LDSBUnbranchedVariable : public Exception { 00151 public: 00153 LDSBUnbranchedVariable(const char* l); 00154 }; 00155 00157 class GECODE_INT_EXPORT LDSBBadValueSelection : public Exception { 00158 public: 00160 LDSBBadValueSelection(const char* l); 00161 }; 00162 00164 00165 }} 00166 00167 // STATISTICS: int-other 00168