1 // exception.h 2 // 3 // Copyright (C) 2003, 2004 Jason Bevins 4 // 5 // This library is free software; you can redistribute it and/or modify it 6 // under the terms of the GNU Lesser General Public License as published by 7 // the Free Software Foundation; either version 2.1 of the License, or (at 8 // your option) any later version. 9 // 10 // This library is distributed in the hope that it will be useful, but WITHOUT 11 // ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 12 // FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 13 // License (COPYING.txt) for more details. 14 // 15 // You should have received a copy of the GNU Lesser General Public License 16 // along with this library; if not, write to the Free Software Foundation, 17 // Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 18 // 19 // The developer's email is jlbezigvins@gmzigail.com (for great email, take 20 // off every 'zig'.) 21 // 22 module noise.exception; 23 24 /// @addtogroup libnoise 25 /// @{ 26 27 /// Invalid parameter exception 28 /// 29 /// An invalid parameter was passed to a libnoise function or method. 30 class ExceptionInvalidParam : Exception 31 { 32 this() { 33 super(""); 34 } 35 }; 36 37 /// No module exception 38 /// 39 /// Could not retrieve a source module from a noise module. 40 /// 41 /// @note If one or more required source modules were not connected to a 42 /// specific noise module, and its GetValue() method was called, that 43 /// method will raise a debug assertion instead of this exception. This 44 /// is done for performance reasons. 45 class ExceptionNoMod : Exception 46 { 47 this() { 48 super(""); 49 } 50 }; 51 52 /// Out of memory exception 53 /// 54 /// There was not enough memory to perform an action. 55 class ExceptionOutOfMemory : Exception 56 { 57 this() { 58 super(""); 59 } 60 }; 61 62 /// Unknown exception 63 /// 64 /// libnoise raised an unknown exception. 65 class ExceptionUnknown : Exception 66 { 67 this() { 68 super(""); 69 } 70 }; 71 72 /// @} 73