22 lines
498 B
C#
22 lines
498 B
C#
using System;
|
|
|
|
namespace Org.BouncyCastle.Crypto.Tls;
|
|
|
|
public class TlsFatalAlert : TlsException
|
|
{
|
|
private readonly byte alertDescription;
|
|
|
|
public virtual byte AlertDescription => alertDescription;
|
|
|
|
public TlsFatalAlert(byte alertDescription)
|
|
: this(alertDescription, null)
|
|
{
|
|
}
|
|
|
|
public TlsFatalAlert(byte alertDescription, Exception alertCause)
|
|
: base(Org.BouncyCastle.Crypto.Tls.AlertDescription.GetText(alertDescription), alertCause)
|
|
{
|
|
this.alertDescription = alertDescription;
|
|
}
|
|
}
|