PageRenderTime 37ms CodeModel.GetById 16ms 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. //===================================================================================
  17. using System;
  18. namespace Microsoft.Practices.Prism.Modularity
  19. {
  20. /// <summary>
  21. /// Exception that's thrown when there is no <see cref="IModuleTypeLoader"/> registered in
  22. /// <see cref="ModuleManager.ModuleTypeLoaders"/> that can handle this particular type of module.
  23. /// </summary>
  24. public partial class ModuleTypeLoaderNotFoundException : ModularityException
  25. {
  26. /// <summary>
  27. /// Initializes a new instance of the <see cref="ModuleTypeLoaderNotFoundException"/> class.
  28. /// </summary>
  29. public ModuleTypeLoaderNotFoundException()
  30. {
  31. }
  32. /// <summary>
  33. /// Initializes a new instance of the <see cref="ModuleTypeLoaderNotFoundException" /> class with a specified error message.
  34. /// </summary>
  35. /// <param name="message">
  36. /// The message that describes the error.
  37. /// </param>
  38. public ModuleTypeLoaderNotFoundException(string message)
  39. : base(message)
  40. {
  41. }
  42. /// <summary>
  43. /// Initializes a new instance of the <see cref="ModuleTypeLoaderNotFoundException" /> class with a specified error message.
  44. /// </summary>
  45. /// <param name="message">
  46. /// The message that describes the error.
  47. /// </param>
  48. /// <param name="innerException">The inner exception</param>
  49. public ModuleTypeLoaderNotFoundException(string message, Exception innerException)
  50. : base(message, innerException)
  51. {
  52. }
  53. /// <summary>
  54. /// Initializes the exception with a particular module, error message and inner exception that happened.
  55. /// </summary>
  56. /// <param name="moduleName">The name of the module.</param>
  57. /// <param name="message">The error message that explains the reason for the exception.</param>
  58. /// <param name="innerException">The exception that is the cause of the current exception,
  59. /// or a <see langword="null"/> reference if no inner exception is specified.</param>
  60. public ModuleTypeLoaderNotFoundException(string moduleName, string message, Exception innerException)
  61. : base(moduleName, message, innerException)
  62. {
  63. }
  64. }
  65. }