/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 16#region Using directives 17 18using System; 19using System.Collections.Generic; 20using System.Text; 21 22#endregion 23 24namespace Microsoft.Samples.SqlServer 25{ 26 [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2237:MarkISerializableTypesWithSerializable"), System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1032:ImplementStandardExceptionConstructors")] 27 public class InvalidMessageException : Exception 28 { 29 public const int ErrorCode = 1001; 30 31 public InvalidMessageException(string message) 32 : base(message) 33 { } 34 35 } 36}