1 //---------------------------------------------------------------------
2 // <copyright file="Exceptions.cs" company="Microsoft">
3 // Copyright (c) Microsoft Corporation. All rights reserved.
7 // @backupOwner Microsoft
8 //---------------------------------------------------------------------
13 using System.Runtime.Serialization;
16 /// Thrown to indicate that a command tree is invalid.
19 public sealed class InvalidCommandTreeException : DataException /*InvalidQueryException*/
22 /// Constructs a new InvalidCommandTreeException with a default message.
24 public InvalidCommandTreeException()
25 : base(System.Data.Entity.Strings.Cqt_Exceptions_InvalidCommandTree) { }
28 /// Constructs a new InvalidCommandTreeException with the specified message.
30 /// <param name="message">The exception message</param>
31 public InvalidCommandTreeException(string message)
35 /// Constructs a new InvalidCommandTreeException with the specified message and inner exception.
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) { }
43 /// Constructs a new InvalidCommandTreeException from the specified serialization info and streaming context.
45 /// <param name="info"></param>
46 /// <param name="context"></param>
47 private InvalidCommandTreeException(SerializationInfo info, StreamingContext context)
48 : base(info, context) { }