//--------------------------------------------------------------------- // // Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner Microsoft // @backupOwner Microsoft //--------------------------------------------------------------------- namespace System.Data { using System; using System.Runtime.Serialization; /// /// Thrown to indicate that a command tree is invalid. /// [Serializable] public sealed class InvalidCommandTreeException : DataException /*InvalidQueryException*/ { /// /// Constructs a new InvalidCommandTreeException with a default message. /// public InvalidCommandTreeException() : base(System.Data.Entity.Strings.Cqt_Exceptions_InvalidCommandTree) { } /// /// Constructs a new InvalidCommandTreeException with the specified message. /// /// The exception message public InvalidCommandTreeException(string message) : base(message) { } /// /// Constructs a new InvalidCommandTreeException with the specified message and inner exception. /// /// The exception message. /// The exception that is the cause of this InvalidCommandTreeException. public InvalidCommandTreeException(string message, Exception innerException) : base(message, innerException) { } /// /// Constructs a new InvalidCommandTreeException from the specified serialization info and streaming context. /// /// /// private InvalidCommandTreeException(SerializationInfo info, StreamingContext context) : base(info, context) { } } }