Add LuaInterface project
This commit is contained in:
29
LuaInterface/LuaException.cs
Normal file
29
LuaInterface/LuaException.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
using System;
|
||||
using System.Runtime.Serialization;
|
||||
|
||||
namespace LuaInterface
|
||||
{
|
||||
/// <summary>
|
||||
/// Exceptions thrown by the Lua runtime
|
||||
/// </summary>
|
||||
[Serializable]
|
||||
public class LuaException : Exception
|
||||
{
|
||||
public LuaException()
|
||||
{}
|
||||
|
||||
public LuaException(string message) : base(message)
|
||||
{}
|
||||
|
||||
public LuaException(string message, Exception innerException) : base(message, innerException)
|
||||
{}
|
||||
|
||||
protected LuaException(SerializationInfo info, StreamingContext context) : base(info, context)
|
||||
{}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return Message;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user