PageRenderTime 49ms CodeModel.GetById 23ms RepoModel.GetById 1ms 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. //===================================================================================
  17. using System;
  18. namespace Microsoft.Practices.Prism.Modularity
  19. {
  20. /// <summary>
  21. /// Exception thrown when a module is declared twice in the same catalog.
  22. /// </summary>
  23. public partial class DuplicateModuleException : ModularityException
  24. {
  25. /// <summary>
  26. /// Initializes a new instance of the <see cref="DuplicateModuleException"/> class.
  27. /// </summary>
  28. public DuplicateModuleException()
  29. {
  30. }
  31. /// <summary>
  32. /// Initializes a new instance of the <see cref="DuplicateModuleException"/> class.
  33. /// </summary>
  34. /// <param name="message">The exception message.</param>
  35. public DuplicateModuleException(string message) : base(message)
  36. {
  37. }
  38. /// <summary>
  39. /// Initializes a new instance of the <see cref="DuplicateModuleException"/> class.
  40. /// </summary>
  41. /// <param name="message">The exception message.</param>
  42. /// <param name="innerException">The inner exception.</param>
  43. public DuplicateModuleException(string message, Exception innerException) : base(message, innerException)
  44. {
  45. }
  46. /// <summary>
  47. /// Initializes a new instance of the <see cref="DuplicateModuleException" /> class with a specified error message.
  48. /// </summary>
  49. /// <param name="moduleName">The name of the module.</param>
  50. /// <param name="message">The message that describes the error.</param>
  51. public DuplicateModuleException(string moduleName, string message)
  52. : base(moduleName, message)
  53. {
  54. }
  55. /// <summary>
  56. /// 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.
  57. /// </summary>
  58. /// <param name="moduleName">The name of the module.</param>
  59. /// <param name="message">The error message that explains the reason for the exception.</param>
  60. /// <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>
  61. public DuplicateModuleException(string moduleName, string message, Exception innerException)
  62. : base(moduleName, message, innerException)
  63. {
  64. }
  65. }
  66. }