exception.icc
Go to the documentation of this file.00001 /* 00002 * Main authors: 00003 * Christian Schulte <schulte@gecode.org> 00004 * Guido Tack <tack@gecode.org> 00005 * 00006 * Copyright: 00007 * Christian Schulte, 2004,2005 00008 * Guido Tack, 2005 00009 * 00010 * Last modified: 00011 * $Date: 2006-07-07 10:08:10 +0200 (Fri, 07 Jul 2006) $ by $Author: tack $ 00012 * $Revision: 3339 $ 00013 * 00014 * This file is part of Gecode, the generic constraint 00015 * development environment: 00016 * http://www.gecode.org 00017 * 00018 * See the file "LICENSE" for information on usage and 00019 * redistribution of this file, and for a 00020 * DISCLAIMER OF ALL WARRANTIES. 00021 * 00022 */ 00023 00024 namespace Gecode { namespace Set { 00025 00033 00035 class VariableOutOfRangeDomain : public Exception { 00036 public: 00038 VariableOutOfRangeDomain(const char* l); 00039 }; 00040 00042 class VariableOutOfRangeCardinality : public Exception { 00043 public: 00045 VariableOutOfRangeCardinality(const char* l); 00046 }; 00047 00049 class VariableFailedDomain : public Exception { 00050 public: 00052 VariableFailedDomain(const char* l); 00053 }; 00054 00056 class ArgumentEmpty : public Exception { 00057 public: 00059 ArgumentEmpty(const char* l); 00060 }; 00061 00063 class ArgumentSizeMismatch : public Exception { 00064 public: 00066 ArgumentSizeMismatch(const char* l); 00067 }; 00068 00070 class InvalidRelation : public Exception { 00071 public: 00073 InvalidRelation(const char* l); 00074 }; 00075 00077 class InvalidProjector : public Exception { 00078 public: 00080 InvalidProjector(const char* l); 00081 }; 00082 00084 class UnknownBranching : public Exception { 00085 public: 00087 UnknownBranching(const char* l); 00088 }; 00089 00091 00097 inline 00098 VariableOutOfRangeDomain::VariableOutOfRangeDomain(const char* l) 00099 : Exception(l,"Attempt to create variable with wrong values") {} 00100 00101 inline 00102 VariableOutOfRangeCardinality::VariableOutOfRangeCardinality(const char* l) 00103 : Exception(l,"Attempt to create variable with wrong cardinality") {} 00104 00105 inline 00106 VariableFailedDomain::VariableFailedDomain(const char* l) 00107 : Exception(l,"Attempt to create variable with initially failed domain") {} 00108 00109 inline 00110 ArgumentEmpty::ArgumentEmpty(const char* l) 00111 : Exception(l,"Passed argument array has no elements") {} 00112 00113 inline 00114 ArgumentSizeMismatch::ArgumentSizeMismatch(const char* l) 00115 : Exception(l,"Sizes of argument arrays mismatch") {} 00116 00117 inline 00118 InvalidRelation::InvalidRelation(const char* l) 00119 : Exception(l,"Invalid relation type") {} 00120 00121 inline 00122 InvalidProjector::InvalidProjector(const char* l) 00123 : Exception(l,"Invalid projector specification") {} 00124 00125 inline 00126 UnknownBranching::UnknownBranching(const char* l) 00127 : Exception(l,"Unknown branching type") {} 00128 00129 }} 00130 00131 // STATISTICS: set-other 00132