Click here to Skip to main content
15,897,518 members
Articles / Programming Languages / C#

The Razor Framework :: Part 1 :: Plugins/Extensibility

Rate me:
Please Sign up or sign in to vote.
4.93/5 (127 votes)
11 Mar 2005CPOL36 min read 352.4K   1.4K   446  
An extensible dependency based plugin framework for .NET Applications.
using System;

namespace Razor.Networking.Addressing
{
	/// <summary>
	/// Represents an error when a name is not valid in a given context
	/// </summary>
	public class NameNotValidException : Exception
	{
		protected string _name;

		/// <summary>
		/// Initializes a new instances of the NameNotUniqueException class
		/// </summary>
		/// <param name="name"></param>
		public NameNotValidException(string name) : base("The new name '" + name + "' is either blank or contains reserved characters which are not escaped.\nBlank names are not allowed.\nReserved characters include ;/?:@&=+$,\nIf reserved characters must be included they must be encoded according to the % hex hex format described in RFC 2396: URI Generic Syntax.")
		{
			_name = name;
		}

		/// <summary>
		/// Returns the name in question
		/// </summary>
		public string Name
		{
			get
			{
				return _name;
			}
		}			
	}
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior)
United States United States
Senior Application Developer specializing in Windows desktop and network development.

Professional Experience
- B.S. of Computer Science (Graduated 2001 - PSU)
- Senior Application Developer (8+ yrs)
- Microsoft Certified Professional

Primary Interests
- C#, C++, HTML, Javascript
- XML, ASP.NET, Web Services, SOAP, UDDI
- Socket programming and anything network related
- Reflection, Serialization, and Plugin Frameworks
- Owner-drawn controls and GDI+ goodness

Comments and Discussions