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
51 lines
1.6 KiB
C#
51 lines
1.6 KiB
C#
//-----------------------------------------------------------------------
|
|
// <copyright file="EsentInvalidColumnException.cs" company="Microsoft Corporation">
|
|
// Copyright (c) Microsoft Corporation.
|
|
// </copyright>
|
|
//-----------------------------------------------------------------------
|
|
|
|
namespace Microsoft.Isam.Esent.Interop
|
|
{
|
|
using System;
|
|
using System.Runtime.Serialization;
|
|
|
|
/// <summary>
|
|
/// Exception thrown when a column conversion fails.
|
|
/// </summary>
|
|
[Serializable]
|
|
public class EsentInvalidColumnException : EsentException
|
|
{
|
|
/// <summary>
|
|
/// Initializes a new instance of the EsentInvalidColumnException class.
|
|
/// </summary>
|
|
public EsentInvalidColumnException()
|
|
{
|
|
}
|
|
|
|
#if MANAGEDESENT_ON_CORECLR
|
|
#else
|
|
/// <summary>
|
|
/// Initializes a new instance of the EsentInvalidColumnException 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 EsentInvalidColumnException(SerializationInfo info, StreamingContext context) :
|
|
base(info, context)
|
|
{
|
|
}
|
|
#endif
|
|
|
|
/// <summary>
|
|
/// Gets a text message describing the exception.
|
|
/// </summary>
|
|
public override string Message
|
|
{
|
|
get
|
|
{
|
|
return "Column is not valid for this operation";
|
|
}
|
|
}
|
|
}
|
|
}
|