@Override public void detach(IComputerAccess computer) { try { this.instance.detach(computer); } catch (Exception e) { MultiPeripheral.Log.severe( String.format( "Cannot call ILuaPeripheral.detach on %s\n", this.instance.getClass().getName())); MultiPeripheral.logThrowable(e); } }
@Override public String getType() { try { return this.instance.getType(); } catch (Exception e) { MultiPeripheral.Log.severe( String.format( "Cannot call IExternalPeripheral.getType on %s", this.instance.getClass().getName())); MultiPeripheral.logThrowable(e); } return null; }