diff options
Diffstat (limited to 'crypto/src/tls/TlsFatalAlertReceived.cs')
-rw-r--r-- | crypto/src/tls/TlsFatalAlertReceived.cs | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/crypto/src/tls/TlsFatalAlertReceived.cs b/crypto/src/tls/TlsFatalAlertReceived.cs new file mode 100644 index 000000000..0bf6cff38 --- /dev/null +++ b/crypto/src/tls/TlsFatalAlertReceived.cs @@ -0,0 +1,21 @@ +using System; + +namespace Org.BouncyCastle.Tls +{ + public class TlsFatalAlertReceived + : TlsException + { + protected readonly short m_alertDescription; + + public TlsFatalAlertReceived(short alertDescription) + : base(Tls.AlertDescription.GetText(alertDescription)) + { + this.m_alertDescription = alertDescription; + } + + public virtual short AlertDescription + { + get { return m_alertDescription; } + } + } +} |