Mercurial > repos > IBBoard
diff Lang/TranslationLoadException.cs @ 21:c8d74202182a
Closes #14 - Throw specific exceptions from translations
* Add TranslationLoadException
* Make Translation class catch various exceptions and throw meaninful TranslationLoadExceptions
* Note potential exceptions in documentation of Translation
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Thu, 05 Mar 2009 20:34:31 +0000 |
parents | |
children | 7e5f5cb0a9ea |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Lang/TranslationLoadException.cs Thu Mar 05 20:34:31 2009 +0000 @@ -0,0 +1,24 @@ +// This file (TranslationLoadException.cs) is a part of the IBBoard project and is copyright 2009 IBBoard +// +// The file and the library/program it is in are licensed under the GNU LGPL license, either version 3 of the License or (at your option) any later version. Please see COPYING.LGPL for more information and the full license. +// + +using System; +using System.IO; + +namespace IBBoard +{ + /// <summary> + /// A sub-class of Exceptions that is thrown when translations fail to load. + /// </summary> + public class TranslationLoadException : Exception + { + public TranslationLoadException(string message) : base(message) + { + } + + public TranslationLoadException(string message, Exception ex) : base(message, ex) + { + } + } +}