Formatted a bit better and moved SqlColumnException to SqlColumn.cs

This commit is contained in:
Edgar Luque 2017-12-09 16:45:31 +01:00
parent 83f02e49aa
commit 4575792987
2 changed files with 39 additions and 37 deletions

View file

@ -17,6 +17,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
using MySql.Data.MySqlClient;
using System;
namespace TShockAPI.DB
{
@ -70,4 +71,19 @@ namespace TShockAPI.DB
Length = length;
}
}
/// <summary>
/// Used when a SqlColumn has validation errors.
/// </summary>
[Serializable]
public class SqlColumnException : Exception
{
/// <summary>
/// Creates a new SqlColumnException with the given message.
/// </summary>
/// <param name="message"></param>
public SqlColumnException(string message) : base(message)
{
}
}
}