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 * Vincent Barichard <Vincent.Barichard@univ-angers.fr> 00006 * 00007 * Copyright: 00008 * Christian Schulte, 2010 00009 * Vincent Barichard, 2012 00010 * 00011 * Last modified: 00012 * $Date: 2015-10-29 14:09:11 +0100 (Thu, 29 Oct 2015) $ by $Author: schulte $ 00013 * $Revision: 14818 $ 00014 * 00015 * This file is part of Gecode, the generic constraint 00016 * development environment: 00017 * http://www.gecode.org 00018 * 00019 * Permission is hereby granted, free of charge, to any person obtaining 00020 * a copy of this software and associated documentation files (the 00021 * "Software"), to deal in the Software without restriction, including 00022 * without limitation the rights to use, copy, modify, merge, publish, 00023 * distribute, sublicense, and/or sell copies of the Software, and to 00024 * permit persons to whom the Software is furnished to do so, subject to 00025 * the following conditions: 00026 * 00027 * The above copyright notice and this permission notice shall be 00028 * included in all copies or substantial portions of the Software. 00029 * 00030 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 00031 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 00032 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 00033 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 00034 * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 00035 * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 00036 * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 00037 * 00038 */ 00039 00040 namespace Gecode { namespace Float { 00041 00048 00050 class GECODE_FLOAT_EXPORT OutOfLimits : public Exception { 00051 public: 00053 OutOfLimits(const char* l); 00054 }; 00055 00057 class GECODE_FLOAT_EXPORT VariableEmptyDomain : public Exception { 00058 public: 00060 VariableEmptyDomain(const char* l); 00061 }; 00062 00064 class GECODE_FLOAT_EXPORT TooFewArguments : public Exception { 00065 public: 00067 TooFewArguments(const char* l); 00068 }; 00069 00071 class GECODE_FLOAT_EXPORT ArgumentSizeMismatch : public Exception { 00072 public: 00074 ArgumentSizeMismatch(const char* l); 00075 }; 00076 00078 class GECODE_FLOAT_EXPORT ArgumentSame : public Exception { 00079 public: 00081 ArgumentSame(const char* l); 00082 }; 00083 00085 class GECODE_FLOAT_EXPORT UnknownRelation : public Exception { 00086 public: 00088 UnknownRelation(const char* l); 00089 }; 00090 00092 class GECODE_FLOAT_EXPORT UnknownOperation : public Exception { 00093 public: 00095 UnknownOperation(const char* l); 00096 }; 00097 00099 class GECODE_FLOAT_EXPORT IllegalOperation : public Exception { 00100 public: 00102 IllegalOperation(const char* l); 00103 }; 00104 00106 class GECODE_FLOAT_EXPORT UnknownBranching : public Exception { 00107 public: 00109 UnknownBranching(const char* l); 00110 }; 00111 00113 class GECODE_FLOAT_EXPORT ValOfUnassignedVar : public Exception { 00114 public: 00116 ValOfUnassignedVar(const char* l); 00117 }; 00118 00120 00121 }} 00122 00123 // STATISTICS: float-other 00124