PageRenderTime 44ms CodeModel.GetById 18ms RepoModel.GetById 0ms 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. //===================================================================================
  17. using System;
  18. using System.Runtime.Serialization;
  19. namespace Microsoft.Practices.Composite.Presentation.Regions
  20. {
  21. /// <summary>
  22. /// Exception that's thrown when something goes wrong while Registering a View with a region name in the <see cref="RegionViewRegistry"/> class.
  23. /// </summary>
  24. public partial class ViewRegistrationException : Exception
  25. {
  26. //
  27. // For guidelines regarding the creation of new exception types, see
  28. // http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpgenref/html/cpconerrorraisinghandlingguidelines.asp
  29. // and
  30. // http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dncscol/html/csharp07192001.asp
  31. //
  32. /// <summary>
  33. /// Initializes a new instance of the <see cref="ViewRegistrationException"/> class.
  34. /// </summary>
  35. public ViewRegistrationException()
  36. {
  37. }
  38. /// <summary>
  39. /// Initializes a new instance of the <see cref="ViewRegistrationException"/> class.
  40. /// </summary>
  41. /// <param name="message">The exception message.</param>
  42. public ViewRegistrationException(string message) : base(message)
  43. {
  44. }
  45. /// <summary>
  46. /// Initializes a new instance of the <see cref="ViewRegistrationException"/> class.
  47. /// </summary>
  48. /// <param name="message">The exception message.</param>
  49. /// <param name="inner">The inner exception.</param>
  50. public ViewRegistrationException(string message, Exception inner) : base(message, inner)
  51. {
  52. }
  53. }
  54. }