Initial commit

This commit is contained in:
Trevor Hall 2026-03-03 23:53:04 -05:00
commit 5584446828
37 changed files with 7962 additions and 0 deletions

58
TLS/Exceptions.cs Normal file
View file

@ -0,0 +1,58 @@
/*
* Secucore
*
* Copyright (C) 2023 Trevor Hall
* All rights reserved.
*
* This software may be modified and distributed under the terms
* of the MIT license.
*
*/
using System;
namespace SecuCore.TLS.Exceptions
{
public class TLSHandshakeException : Exception
{
public TLSHandshakeException(string s = "") : base("Error during tls handshake: " + s)
{
}
}
public class TLSEncryptionException : Exception
{
public TLSEncryptionException(string s = "") : base("Error during tls encryption: " + s)
{
}
}
public class TLSValidationException : Exception
{
public TLSValidationException(string s = "") : base("Error during tls validation: " + s)
{
}
}
public class TLSProtocolException : Exception
{
public TLSProtocolException(string s = "") : base("TLS Protocol was broken: " + s)
{
}
}
public class TLSRecordException : Exception
{
public TLSRecordException(string s = "") : base("TLS Record threw an exception: " + s)
{
}
}
public class TLSDataException : Exception
{
public TLSDataException(string s = "") : base("Error with TLS application data: " + s)
{
}
}
public class TLSNetworkException : Exception
{
public TLSNetworkException(string s = "") : base("Error during network communication: " + s)
{
}
}
}