40 lines
985 B
C#
40 lines
985 B
C#
#if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
|
|
#pragma warning disable
|
|
using System;
|
|
using System.Runtime.Serialization;
|
|
|
|
namespace BestHTTP.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
|