/Katmai_July_CTP/ShoppingCart/ShoppingCartService/CS/ShoppingCartService/InvalidMessageException.cs

# · C# · 36 lines · 16 code · 6 blank · 14 comment · 0 complexity · 8076cbde5af595a2f32b39c8178dd744 MD5 · raw file

  1. //-----------------------------------------------------------------------
  2. // This file is part of the Microsoft Code Samples.
  3. //
  4. // Copyright (C) Microsoft Corporation. All rights reserved.
  5. //
  6. //This source code is intended only as a supplement to Microsoft
  7. //Development Tools and/or on-line documentation. See these other
  8. //materials for detailed information regarding Microsoft code samples.
  9. //
  10. //THIS CODE AND INFORMATION ARE PROVIDED AS IS WITHOUT WARRANTY OF ANY
  11. //KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  12. //IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
  13. //PARTICULAR PURPOSE.
  14. //-----------------------------------------------------------------------
  15. #region Using directives
  16. using System;
  17. using System.Collections.Generic;
  18. using System.Text;
  19. #endregion
  20. namespace Microsoft.Samples.SqlServer
  21. {
  22. [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2237:MarkISerializableTypesWithSerializable"), System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1032:ImplementStandardExceptionConstructors")]
  23. public class InvalidMessageException : Exception
  24. {
  25. public const int ErrorCode = 1001;
  26. public InvalidMessageException(string message)
  27. : base(message)
  28. { }
  29. }
  30. }