mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-07-11 03:03:10 +00:00
Add the package ManagedEsent (microsoft/ManagedEsent@d358c07), and WelsonJS.Esent
52 lines
1.7 KiB
C#
52 lines
1.7 KiB
C#
//-----------------------------------------------------------------------
|
|
// <copyright file="EsentException.cs" company="Microsoft Corporation">
|
|
// Copyright (c) Microsoft Corporation.
|
|
// </copyright>
|
|
//-----------------------------------------------------------------------
|
|
|
|
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
|
|
|
|
/// <summary>
|
|
/// Base class for ESENT exceptions.
|
|
/// </summary>
|
|
[Serializable]
|
|
public abstract class EsentException : Exception
|
|
{
|
|
/// <summary>
|
|
/// Initializes a new instance of the EsentException class.
|
|
/// </summary>
|
|
protected EsentException()
|
|
{
|
|
}
|
|
|
|
/// <summary>
|
|
/// Initializes a new instance of the EsentException class with a specified error message.
|
|
/// </summary>
|
|
/// <param name="message">The message that describes the error.</param>
|
|
protected EsentException(string message)
|
|
: base(message)
|
|
{
|
|
}
|
|
|
|
/// <summary>
|
|
/// Initializes a new instance of the EsentException class. This constructor
|
|
/// is used to deserialize a serialized exception.
|
|
/// </summary>
|
|
/// <param name="info">The data needed to deserialize the object.</param>
|
|
/// <param name="context">The deserialization context.</param>
|
|
protected EsentException(SerializationInfo info, StreamingContext context)
|
|
#if MANAGEDESENT_SUPPORTS_SERIALIZATION || !MANAGEDESENT_ON_WSA
|
|
: base(info, context)
|
|
#endif
|
|
{
|
|
}
|
|
}
|
|
}
|