init commit
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user