You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
logger.error("Error while reading 'Everything related to keyboard' in " + Filename + " in line " + linecounter+". Keyboard, KeyboardState and CharTyped always need to have the same number of inputs");
223
-
thrownewIOException();
227
+
thrownewIOException("Error while reading 'Everything related to keyboard' in " + Filename + " in line " + linecounter+". Keyboard, KeyboardState and CharTyped always need to have the same number of inputs");
logger.error("Error while reading 'Everything related to mouse' in " + Filename + " in line " + linecounter+". Mouse, MouseStates, ScrollWheel, DeltaX, DeltaY, MouseX, MouseY and slotID always need to have the same number of inputs");
237
-
thrownewIOException();
240
+
thrownewIOException("Error while reading 'Everything related to mouse' in " + Filename + " in line " + linecounter+". Mouse, MouseStates, ScrollWheel, DeltaX, DeltaY, MouseX, MouseY and slotID always need to have the same number of inputs");
238
241
}
239
242
//Adding every keyboard an mouse event from the current tick into yet another list that contains every input from every tick
logger.error("Error while reading tickcounter in "+Filename+ " in line "+linecounter+"and the input in position "+1+" from the left. The input is empty!");
252
-
thrownewIOException();
254
+
thrownewIOException("Error while reading tickcounter in "+Filename+ " in line "+linecounter+"and the input in position "+1+" from the left. The input is empty!");
logger.error("Error while reading 'Keyboard' in "+Filename+ " in line "+linecounter+" and the input in position "+(i+1)+" from the left. Couldn't find the key "+keys[i]+".");
275
-
thrownewIOException();
276
+
thrownewIOException("Error while reading 'Keyboard' in "+Filename+ " in line "+linecounter+" and the input in position "+(i+1)+" from the left. Couldn't find the key "+keys[i]+".");
if (keys[i].contentEquals("true")||keys[i].contentEquals("false")) {
364
361
out.add(Boolean.parseBoolean(keys[i]));
365
362
} else {
366
-
logger.error("Error while reading 'MouseState' in " + Filename + " in line " + linecounter
363
+
thrownewIOException("Error while reading 'MouseState' in " + Filename + " in line " + linecounter
367
364
+ " and the key in position " + (i + 1) + " from the left. Input is not true or false: '"
368
365
+ keys[i] + "'");
369
-
thrownewIOException();
370
366
}
371
367
}
372
368
}
@@ -476,8 +472,7 @@ private static int getNumber(String name, String number, int linecounter, int po
476
472
try {
477
473
counter=Integer.parseInt(number);
478
474
} catch (NumberFormatExceptione) {
479
-
logger.error("Error while reading "+name+" in "+Filename+ " in line "+linecounter+" and the input in position "+(position+1)+" from the left. The input doesn't contain a number ("+number+")");
480
-
thrownewIOException();
475
+
thrownewIOException("Error while reading "+name+" in "+Filename+ " in line "+linecounter+" and the input in position "+(position+1)+" from the left. The input doesn't contain a number ("+number+")");
logger.error("Error while reading "+name+" in "+Filename+ " in line "+linecounter+" and the input in position "+(position+1)+" from the left. The input doesn't contain a number type float ("+floatnumber+")");
499
-
thrownewIOException();
493
+
thrownewIOException("Error while reading "+name+" in "+Filename+ " in line "+linecounter+" and the input in position "+(position+1)+" from the left. The input doesn't contain a number type float ("+floatnumber+")");
logger.error("Error while reading "+name+" in "+Filename+ " in line "+linecounter+" and the input in position "+(position+1)+" from the left. The input doesn't contain a number of type double ("+doublenumber+")");
509
-
thrownewIOException();
502
+
thrownewIOException("Error while reading "+name+" in "+Filename+ " in line "+linecounter+" and the input in position "+(position+1)+" from the left. The input doesn't contain a number of type double ("+doublenumber+")");
510
503
}
511
504
returncounter;
512
505
}
@@ -520,7 +513,7 @@ private static float getPitch(String[] sections, int linecounter, int sectionnum
0 commit comments