annotate DuplicateIniLineException.cs @ 3:3c26f463977a

Re #7 - Add INI parsing tests * Make IniSection throw a new DuplicateIniLineException to make testing of duplicates easier
author IBBoard <dev@ibboard.co.uk>
date Sun, 18 Jan 2009 14:18:07 +0000
parents
children 01fc09ab63e2
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3
3c26f463977a Re #7 - Add INI parsing tests
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1 // This file (DuplicateIniLineException.cs) is a part of [PROJECT NAME] and is copyright 2009 IBBoard.
3c26f463977a Re #7 - Add INI parsing tests
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2 //
3c26f463977a Re #7 - Add INI parsing tests
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3 // The file and the library/program it is in are licensed under the GNU LGPL license. Please see COPYING.LGPL for more information and the full license.
3c26f463977a Re #7 - Add INI parsing tests
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
4
3c26f463977a Re #7 - Add INI parsing tests
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
5 using System;
3c26f463977a Re #7 - Add INI parsing tests
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
6
3c26f463977a Re #7 - Add INI parsing tests
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
7 namespace IBBoard.Ini
3c26f463977a Re #7 - Add INI parsing tests
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
8 {
3c26f463977a Re #7 - Add INI parsing tests
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
9 /// <summary>
3c26f463977a Re #7 - Add INI parsing tests
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
10 /// An exception that indicates that a second line has been added to an IniSection that contained the same key as an existing line
3c26f463977a Re #7 - Add INI parsing tests
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
11 /// </summary>
3c26f463977a Re #7 - Add INI parsing tests
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
12 public class DuplicateIniLineException : ArgumentException
3c26f463977a Re #7 - Add INI parsing tests
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
13 {
3c26f463977a Re #7 - Add INI parsing tests
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
14 public DuplicateIniLineException(string sectionName, string lineName) : base("The section [" + sectionName + "] already contained a line with the key '" + lineName + "'")
3c26f463977a Re #7 - Add INI parsing tests
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
15 {
3c26f463977a Re #7 - Add INI parsing tests
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
16 }
3c26f463977a Re #7 - Add INI parsing tests
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
17 }
3c26f463977a Re #7 - Add INI parsing tests
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
18 }