AsnContentException
The exception that is thrown when an encoded ASN.1 value cannot be successfully decoded.
using System.Runtime.CompilerServices;
using System.Runtime.Serialization;
namespace System.Formats.Asn1
{
[Serializable]
[System.Runtime.CompilerServices.NullableContext(2)]
[System.Runtime.CompilerServices.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)
{
}
[System.Runtime.CompilerServices.NullableContext(1)]
protected AsnContentException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
}
}
}