//----------------------------------------------------------------------- // // Copyright (c) Microsoft Corporation. // //----------------------------------------------------------------------- namespace Microsoft.Isam.Esent { using System; using System.Runtime.Serialization; #if !MANAGEDESENT_SUPPORTS_SERIALIZATION && MANAGEDESENT_ON_WSA using Microsoft.Isam.Esent.Interop; using SerializableAttribute = Microsoft.Isam.Esent.Interop.SerializableAttribute; #endif /// /// Base class for ESENT exceptions. /// [Serializable] public abstract class EsentException : Exception { /// /// Initializes a new instance of the EsentException class. /// protected EsentException() { } /// /// Initializes a new instance of the EsentException class with a specified error message. /// /// The message that describes the error. protected EsentException(string message) : base(message) { } /// /// Initializes a new instance of the EsentException class. This constructor /// is used to deserialize a serialized exception. /// /// The data needed to deserialize the object. /// The deserialization context. protected EsentException(SerializationInfo info, StreamingContext context) #if MANAGEDESENT_SUPPORTS_SERIALIZATION || !MANAGEDESENT_ON_WSA : base(info, context) #endif { } } }