Generated on Wed Jan 4 17:49:09 2006 for Gecode by doxygen 1.4.6

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: 2005-07-29 08:28:11 +0200 (Fri, 29 Jul 2005) $ by $Author: tack $
00012  *     $Revision: 2073 $
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 UnknownBranching : public Exception {
00078   public:
00080     UnknownBranching(const char* l);
00081   };
00082 
00084 
00090   inline
00091   VariableOutOfRangeDomain::VariableOutOfRangeDomain(const char* l)
00092     : Exception(l,"Attempt to create variable with wrong values") {}
00093 
00094   inline
00095   VariableOutOfRangeCardinality::VariableOutOfRangeCardinality(const char* l)
00096     : Exception(l,"Attempt to create variable with wrong cardinality") {}
00097 
00098   inline
00099   VariableFailedDomain::VariableFailedDomain(const char* l)
00100     : Exception(l,"Attempt to create variable with initially failed domain") {}
00101 
00102   inline
00103   ArgumentEmpty::ArgumentEmpty(const char* l)
00104     : Exception(l,"Passed argument array has no elements") {}
00105 
00106   inline
00107   ArgumentSizeMismatch::ArgumentSizeMismatch(const char* l)
00108     : Exception(l,"Sizes of argument arrays mismatch") {}
00109 
00110   inline
00111   InvalidRelation::InvalidRelation(const char* l)
00112     : Exception(l,"Invalid relation type") {}
00113 
00114   inline
00115   UnknownBranching::UnknownBranching(const char* l)
00116     : Exception(l,"Unknown branching type") {}
00117 
00118 }}
00119 
00120 // STATISTICS: set-other
00121