Mercurial > repos > IBBoard
comparison 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 |
comparison
equal
deleted
inserted
replaced
20:855b4903b256 | 21:c8d74202182a |
---|---|
1 // This file (TranslationLoadException.cs) is a part of the IBBoard project and is copyright 2009 IBBoard | |
2 // | |
3 // 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. | |
4 // | |
5 | |
6 using System; | |
7 using System.IO; | |
8 | |
9 namespace IBBoard | |
10 { | |
11 /// <summary> | |
12 /// A sub-class of Exceptions that is thrown when translations fail to load. | |
13 /// </summary> | |
14 public class TranslationLoadException : Exception | |
15 { | |
16 public TranslationLoadException(string message) : base(message) | |
17 { | |
18 } | |
19 | |
20 public TranslationLoadException(string message, Exception ex) : base(message, ex) | |
21 { | |
22 } | |
23 } | |
24 } |