Files
ichni_Official/Packages/com.tivadar.best.http/Runtime/3rdParty/BouncyCastle/crypto/DataLengthException.cs
2026-06-15 18:18:16 +08:00

40 lines
986 B
C#

#if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
#pragma warning disable
using System;
using System.Runtime.Serialization;
namespace Best.HTTP.SecureProtocol.Org.BouncyCastle.Crypto
{
/// <summary>This exception is thrown if a buffer that is meant to have output copied into it turns out to be too
/// short, or if we've been given insufficient input.</summary>
/// <remarks>
/// In general this exception will get thrown rather than an <see cref="IndexOutOfRangeException"/>.
/// </remarks>
[Serializable]
public class DataLengthException
: CryptoException
{
public DataLengthException()
: base()
{
}
public DataLengthException(string message)
: base(message)
{
}
public DataLengthException(string message, Exception innerException)
: base(message, innerException)
{
}
protected DataLengthException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
}
}
}
#pragma warning restore
#endif