PageRenderTime 18ms CodeModel.GetById 12ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

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

#
C# | 69 lines | 22 code | 4 blank | 43 comment | 0 complexity | 5983e8f8f0d6ecce3f0fffd1697e443c 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 that's thrown when there is no <see cref="IModuleTypeLoader"/> registered in 
23    /// <see cref="ModuleManager.ModuleTypeLoaders"/> that can handle this particular type of module. 
24    /// </summary>
25    public partial class ModuleTypeLoaderNotFoundException : ModularityException
26    {
27        /// <summary>
28        /// Initializes a new instance of the <see cref="ModuleTypeLoaderNotFoundException"/> class.
29        /// </summary>
30        public ModuleTypeLoaderNotFoundException()
31        {
32        }
33
34        /// <summary>
35        /// Initializes a new instance of the <see cref="ModuleTypeLoaderNotFoundException" /> class with a specified error message.
36        /// </summary>
37        /// <param name="message">
38        /// The message that describes the error. 
39        /// </param>
40        public ModuleTypeLoaderNotFoundException(string message)
41            : base(message)
42        {
43        }
44
45        /// <summary>
46        /// Initializes a new instance of the <see cref="ModuleTypeLoaderNotFoundException" /> class with a specified error message.
47        /// </summary>
48        /// <param name="message">
49        /// The message that describes the error. 
50        /// </param>
51        /// <param name="innerException">The inner exception</param>
52        public ModuleTypeLoaderNotFoundException(string message, Exception innerException)
53            : base(message, innerException)
54        {
55        }
56
57        /// <summary>
58        /// Initializes the exception with a particular module, error message and inner exception that happened.
59        /// </summary>
60        /// <param name="moduleName">The name of the module.</param>
61        /// <param name="message">The error message that explains the reason for the exception.</param>
62        /// <param name="innerException">The exception that is the cause of the current exception, 
63        /// or a <see langword="null"/> reference if no inner exception is specified.</param>
64        public ModuleTypeLoaderNotFoundException(string moduleName, string message, Exception innerException)
65            : base(moduleName, message, innerException)
66        {
67        }
68    }
69}