Examples of LuaException


Examples of dan200.computercraft.api.lua.LuaException

      throw e.rethrow();
    } catch (Throwable e) {
      String methodName = wrapped.methodNames[index];
      Log.log(Level.DEBUG, e, "Unwrapped error during method %s(%d) execution on peripheral %s, args: %s",
          methodName, index, type, Arrays.toString(arguments));
      throw new LuaException("Internal error. Check logs for info");
    }
  }
View Full Code Here

Examples of dan200.computercraft.api.lua.LuaException

    Throwable cause = getCause();
    return cause != null? getMessageForThrowable(cause) : "internal error";
  }

  public LuaException rethrow() throws LuaException {
    throw new LuaException(getMessage());
  }
View Full Code Here

Examples of org.keplerproject.luajava.LuaException

    {
      return new LuaNode(fileName);
    }
    catch (ClassNotFoundException e)
    {
      throw new LuaException(e);
    }
  }
View Full Code Here

Examples of org.keplerproject.luajava.LuaException

      if (err != 0)
      {
        switch (err)
        {
          case 1 :
            throw new LuaException("Runtime error. " + L.toString(-1));
          case 2 :
            throw new LuaException("File not found. " + L.toString(-1));
          case 3 :
            throw new LuaException("Syntax error. " + L.toString(-1));
          case 4 :
            throw new LuaException("Memory error. " + L.toString(-1));
          default :
            throw new LuaException("Error. " + L.toString(-1));
        }
      }
      configLib = (IConfig) L.getLuaObject("configLib").createProxy("test.node.IConfig");
    }
   
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.