コード例 #1
0
 @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);
   }
 }
コード例 #2
0
 @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;
 }