Formatted a bit better and moved SqlColumnException to SqlColumn.cs
This commit is contained in:
parent
83f02e49aa
commit
4575792987
2 changed files with 39 additions and 37 deletions
|
|
@ -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)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue