Generated on Fri Mar 20 15:55:59 2015 for Gecode by doxygen 1.6.3

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  *  Last modified:
00010  *     $Date: 2013-05-02 17:10:16 +0200 (Thu, 02 May 2013) $ by $Author: schulte $
00011  *     $Revision: 13603 $
00012  *
00013  *  This file is part of Gecode, the generic constraint
00014  *  development environment:
00015  *     http://www.gecode.org
00016  *
00017  *  Permission is hereby granted, free of charge, to any person obtaining
00018  *  a copy of this software and associated documentation files (the
00019  *  "Software"), to deal in the Software without restriction, including
00020  *  without limitation the rights to use, copy, modify, merge, publish,
00021  *  distribute, sublicense, and/or sell copies of the Software, and to
00022  *  permit persons to whom the Software is furnished to do so, subject to
00023  *  the following conditions:
00024  *
00025  *  The above copyright notice and this permission notice shall be
00026  *  included in all copies or substantial portions of the Software.
00027  *
00028  *  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
00029  *  EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
00030  *  MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
00031  *  NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
00032  *  LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
00033  *  OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
00034  *  WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
00035  *
00036  */
00037 
00038 namespace Gecode {
00039 
00046 
00048   class GECODE_VTABLE_EXPORT SpaceFailed : public Exception {
00049   public:
00051     SpaceFailed(const char* l);
00052   };
00053 
00055   class GECODE_VTABLE_EXPORT SpaceNotStable : public Exception {
00056   public:
00058     SpaceNotStable(const char* l);
00059   };
00060 
00062   class GECODE_VTABLE_EXPORT SpaceNotCloned : public Exception {
00063   public:
00065     SpaceNotCloned(const char* l);
00066   };
00067 
00069   class GECODE_VTABLE_EXPORT SpaceNoBrancher : public Exception {
00070   public:
00072     SpaceNoBrancher(const char* l);
00073   };
00074 
00076   class GECODE_VTABLE_EXPORT SpaceIllegalAlternative : public Exception {
00077   public:
00079     SpaceIllegalAlternative(const char* l);
00080   };
00081 
00083   class GECODE_VTABLE_EXPORT TooManyBranchers : public Exception {
00084   public:
00086     TooManyBranchers(const char* l);
00087   };
00088 
00090   class GECODE_VTABLE_EXPORT IllegalDecay : public Exception {
00091   public:
00093     IllegalDecay(const char* l);
00094   };
00095 
00097   class GECODE_VTABLE_EXPORT UninitializedAFC : public Exception {
00098   public:
00100     UninitializedAFC(const char* l);
00101   };
00102 
00104   class GECODE_VTABLE_EXPORT UninitializedActivity : public Exception {
00105   public:
00107     UninitializedActivity(const char* l);
00108   };
00109 
00111   class GECODE_VTABLE_EXPORT UninitializedRnd : public Exception {
00112   public:
00114     UninitializedRnd(const char* l);
00115   };
00116 
00118   class GECODE_VTABLE_EXPORT AFCWrongArity : public Exception {
00119   public:
00121     AFCWrongArity(const char* l);
00122   };
00123 
00125   class GECODE_VTABLE_EXPORT ActivityWrongArity : public Exception {
00126   public:
00128     ActivityWrongArity(const char* l);
00129   };
00130 
00132 
00133   /*
00134    * Classes for exceptions raised by kernel
00135    *
00136    */
00137   inline
00138   SpaceFailed::SpaceFailed(const char* l)
00139     : Exception(l,"Attempt to invoke operation on failed space") {}
00140 
00141   inline
00142   SpaceNotStable::SpaceNotStable(const char* l)
00143     : Exception(l,"Attempt to invoke operation on not stable space") {}
00144 
00145   inline
00146   SpaceNotCloned::SpaceNotCloned(const char* l)
00147     : Exception(l,"Copy constructor of space did not call base class copy constructor") {}
00148 
00149   inline
00150   SpaceNoBrancher::SpaceNoBrancher(const char* l)
00151     : Exception(l,"Attempt to commit with no brancher") {}
00152 
00153   inline
00154   SpaceIllegalAlternative::SpaceIllegalAlternative(const char* l)
00155     : Exception(l,"Attempt to commit with illegal alternative") {}
00156 
00157   inline
00158   TooManyBranchers::TooManyBranchers(const char* l)
00159     : Exception(l,"Too many branchers created") {}
00160 
00161   inline
00162   UninitializedRnd::UninitializedRnd(const char* l)
00163     : Exception(l,"Uninitialized random generator for branching") {}
00164 
00165   inline
00166   IllegalDecay::IllegalDecay(const char* l)
00167     : Exception(l,"Illegal decay factor") {}
00168 
00169   inline
00170   UninitializedAFC::UninitializedAFC(const char* l)
00171     : Exception(l,"Uninitialized AFC information for branching") {}
00172 
00173   inline
00174   UninitializedActivity::UninitializedActivity(const char* l)
00175     : Exception(l,"Uninitialized activity information for branching") {}
00176 
00177   inline
00178   AFCWrongArity::AFCWrongArity(const char* l)
00179     : Exception(l,"AFC has wrong number of variables") {}
00180 
00181   inline
00182   ActivityWrongArity::ActivityWrongArity(const char* l)
00183     : Exception(l,"Activity has wrong number of variables") {}
00184 
00185 }
00186 
00187 // STATISTICS: kernel-other