view DuplicateIniLineException.cs @ 5:7e06c0699257

Re #7 - Add tests to INI parsing * Fix documentation
author IBBoard <dev@ibboard.co.uk>
date Sun, 18 Jan 2009 14:30:40 +0000
parents 01fc09ab63e2
children f6f726c92e56
line wrap: on
line source

// This file (DuplicateIniLineException.cs) is a part of the IBBoard.Ini library and is copyright 2009 IBBoard.
//
// 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.

using System;

namespace IBBoard.Ini
{
	/// <summary>
	/// An exception that indicates that a second line has been added to an IniSection that contained the same key as an existing line
	/// </summary>
	public class DuplicateIniLineException : ArgumentException
	{		
		public DuplicateIniLineException(string sectionName, string lineName) : base("The section [" + sectionName + "] already contained a line with the key '" + lineName + "'")
		{
		}
	}
}