static int _CreatePlayerPrefsException(IntPtr L)
    {
        int count = LuaDLL.lua_gettop(L);

        if (count == 1)
        {
            string arg0 = LuaScriptMgr.GetLuaString(L, 1);
            PlayerPrefsException obj = new PlayerPrefsException(arg0);
            LuaScriptMgr.PushObject(L, obj);
            return(1);
        }
        else
        {
            LuaDLL.luaL_error(L, "invalid arguments to method: PlayerPrefsException.New");
        }

        return(0);
    }
    public static int constructor(IntPtr l)
    {
        int result;

        try
        {
            string error;
            LuaObject.checkType(l, 2, out error);
            PlayerPrefsException o = new PlayerPrefsException(error);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, o);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }