Updates referencesource to .NET 4.7
[mono.git] / mcs / class / referencesource / System.Data.Entity / System / Data / InvalidCommandTreeException.cs
1 //---------------------------------------------------------------------
2 // <copyright file="Exceptions.cs" company="Microsoft">
3 //      Copyright (c) Microsoft Corporation.  All rights reserved.
4 // </copyright>
5 //
6 // @owner  Microsoft
7 // @backupOwner Microsoft
8 //---------------------------------------------------------------------
9
10 namespace System.Data
11 {
12     using System;
13     using System.Runtime.Serialization;
14
15     /// <summary>
16     /// Thrown to indicate that a command tree is invalid.
17     /// </summary>
18     [Serializable]
19     public sealed class InvalidCommandTreeException : DataException /*InvalidQueryException*/
20     {
21         /// <summary>
22         /// Constructs a new InvalidCommandTreeException with a default message.
23         /// </summary>
24         public InvalidCommandTreeException()
25             : base(System.Data.Entity.Strings.Cqt_Exceptions_InvalidCommandTree) { }
26
27         /// <summary>
28         /// Constructs a new InvalidCommandTreeException with the specified message.
29         /// </summary>
30         /// <param name="message">The exception message</param>
31         public InvalidCommandTreeException(string message) 
32             : base(message) { }
33
34         /// <summary>
35         /// Constructs a new InvalidCommandTreeException with the specified message and inner exception.
36         /// </summary>
37         /// <param name="message">The exception message.</param>
38         /// <param name="innerException">The exception that is the cause of this InvalidCommandTreeException.</param>
39         public InvalidCommandTreeException(string message, Exception innerException)
40             : base(message, innerException) { }
41
42         /// <summary>
43         /// Constructs a new InvalidCommandTreeException from the specified serialization info and streaming context.
44         /// </summary>
45         /// <param name="info"></param>
46         /// <param name="context"></param>
47         private InvalidCommandTreeException(SerializationInfo info, StreamingContext context)
48             : base(info, context) { }
49
50      }        
51 }