PageRenderTime 25ms CodeModel.GetById 15ms app.highlight 5ms RepoModel.GetById 2ms app.codeStats 0ms

/V4/PrismLibrary/Desktop/Prism/Modularity/DuplicateModuleException.cs

#
C# | 71 lines | 24 code | 5 blank | 42 comment | 0 complexity | 2a3c1ac65ace0a41b11b10379e0142b2 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;
18
19namespace Microsoft.Practices.Prism.Modularity
20{
21    /// <summary>
22    /// Exception thrown when a module is declared twice in the same catalog.
23    /// </summary>
24    public partial class DuplicateModuleException : ModularityException
25    {
26        /// <summary>
27        /// Initializes a new instance of the <see cref="DuplicateModuleException"/> class.
28        /// </summary>
29        public DuplicateModuleException()
30        {
31        }
32
33        /// <summary>
34        /// Initializes a new instance of the <see cref="DuplicateModuleException"/> class.
35        /// </summary>
36        /// <param name="message">The exception message.</param>
37        public DuplicateModuleException(string message) : base(message)
38        {
39        }
40
41        /// <summary>
42        /// Initializes a new instance of the <see cref="DuplicateModuleException"/> class.
43        /// </summary>
44        /// <param name="message">The exception message.</param>
45        /// <param name="innerException">The inner exception.</param>
46        public DuplicateModuleException(string message, Exception innerException) : base(message, innerException)
47        {
48        }
49
50        /// <summary>
51        /// Initializes a new instance of the <see cref="DuplicateModuleException" /> class with a specified error message.
52        /// </summary>
53        /// <param name="moduleName">The name of the module.</param>
54        /// <param name="message">The message that describes the error.</param>
55        public DuplicateModuleException(string moduleName, string message)
56            : base(moduleName, message)
57        {
58        }
59
60        /// <summary>
61        /// Initializes a new instance of the <see cref="DuplicateModuleException" /> class with a specified error message and a reference to the inner exception that is the cause of this exception.
62        /// </summary>
63        /// <param name="moduleName">The name of the module.</param>
64        /// <param name="message">The error message that explains the reason for the exception.</param>
65        /// <param name="innerException">The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified.</param>
66        public DuplicateModuleException(string moduleName, string message, Exception innerException)
67            : base(moduleName, message, innerException)
68        {
69        }
70    }
71}