exception.icc
Go to the documentation of this file.00001 /* 00002 * Main authors: 00003 * Christian Schulte <schulte@gecode.org> 00004 * Mikael Lagerkvist <lagerkvist@gecode.org> 00005 * 00006 * Copyright: 00007 * Christian Schulte, 2004 00008 * Mikael Lagerkvist, 2005 00009 * 00010 * Last modified: 00011 * $Date: 2006-08-04 16:05:26 +0200 (Fri, 04 Aug 2006) $ by $Author: schulte $ 00012 * $Revision: 3513 $ 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 MiniModel { 00025 00032 00034 class ArgumentSizeMismatch : public Exception { 00035 public: 00037 ArgumentSizeMismatch(const char* l); 00038 }; 00039 00041 class ArgumentOutOfRange : public Exception { 00042 public: 00044 ArgumentOutOfRange(const char* l); 00045 }; 00046 00048 00049 inline 00050 ArgumentSizeMismatch::ArgumentSizeMismatch(const char* l) 00051 : Exception(l,"Sizes of argument arrays mismatch") {} 00052 00053 inline 00054 ArgumentOutOfRange::ArgumentOutOfRange(const char* l) 00055 : Exception(l,"Argument out of range") {} 00056 00057 }} 00058 00059 // STATISTICS: minimodel-any