private void OnHookException(HookExceptionEventArgs e) { var temp = HookException; if(!temp.IsNull()) temp(this, e); }
void OnLuaException(object sender, HookExceptionEventArgs e) { ShowException(e.Exception); }
void Engine_HookException(object sender, HookExceptionEventArgs e) { Console.WriteLine(MessageType.Error, "Lua: {0}", e.Exception.Message); }
void Lua_HookException(object sender, HookExceptionEventArgs e) { Console.Out.WriteLine(String.Format("Unhandeld Exception in hook callback: {0}", e.Exception.GetType().Name)); Console.Out.WriteLine(e.Exception.ToString()); }