PageRenderTime 23ms CodeModel.GetById 18ms app.highlight 2ms RepoModel.GetById 2ms app.codeStats 0ms

/V2.2/trunk/CAL/Desktop/Composite.Presentation/Regions/ViewRegistrationException.cs

#
C# | 60 lines | 17 code | 6 blank | 37 comment | 0 complexity | fcd89b335e6b5b35ac9af9a9b1cf319c MD5 | raw file
 1//===================================================================================
 2// Microsoft patterns & practices
 3// Composite Application Guidance for Windows Presentation Foundation and Silverlight
 4//===================================================================================
 5// Copyright (c) Microsoft Corporation.  All rights reserved.
 6// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY
 7// OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT
 8// LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
 9// FITNESS FOR A PARTICULAR PURPOSE.
10//===================================================================================
11// The example companies, organizations, products, domain names,
12// e-mail addresses, logos, people, places, and events depicted
13// herein are fictitious.  No association with any real company,
14// organization, product, domain name, email address, logo, person,
15// places, or events is intended or should be inferred.
16//===================================================================================
17using System;
18using System.Runtime.Serialization;
19
20namespace Microsoft.Practices.Composite.Presentation.Regions
21{
22    /// <summary>
23    /// Exception that's thrown when something goes wrong while Registering a View with a region name in the <see cref="RegionViewRegistry"/> class. 
24    /// </summary>
25    public partial class ViewRegistrationException : Exception
26    {
27        //
28        // For guidelines regarding the creation of new exception types, see
29        //    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpgenref/html/cpconerrorraisinghandlingguidelines.asp
30        // and
31        //    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dncscol/html/csharp07192001.asp
32        //
33
34        /// <summary>
35        /// Initializes a new instance of the <see cref="ViewRegistrationException"/> class.
36        /// </summary>
37        public ViewRegistrationException()
38        {
39        }
40
41        /// <summary>
42        /// Initializes a new instance of the <see cref="ViewRegistrationException"/> class.
43        /// </summary>
44        /// <param name="message">The exception message.</param>
45        public ViewRegistrationException(string message) : base(message)
46        {
47        }
48
49        /// <summary>
50        /// Initializes a new instance of the <see cref="ViewRegistrationException"/> class.
51        /// </summary>
52        /// <param name="message">The exception message.</param>
53        /// <param name="inner">The inner exception.</param>
54        public ViewRegistrationException(string message, Exception inner) : base(message, inner)
55        {
56        }
57
58       
59    }
60}