AsnContentException
The exception that is thrown when an encoded ASN.1 value cannot be successfully decoded.
using System.ComponentModel;
using System.Runtime.CompilerServices;
using System.Runtime.Serialization;
namespace System.Formats.Asn1
{
[Serializable]
[NullableContext(2)]
[Nullable(0)]
public class AsnContentException : Exception
{
public AsnContentException()
: base(System.SR.ContentException_DefaultMessage)
{
}
public AsnContentException(string message)
: base(message ?? System.SR.ContentException_DefaultMessage)
{
}
public AsnContentException(string message, Exception inner)
: base(message ?? System.SR.ContentException_DefaultMessage, inner)
{
}
[NullableContext(1)]
[Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId = "SYSLIB0051", UrlFormat = "https://aka.ms/dotnet-warnings/{0}")]
[EditorBrowsable(EditorBrowsableState.Never)]
protected AsnContentException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
}
}
}