mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-10-01 23:31:42 +00:00
Loading SWFs from memory
Progressbar animation fix Few refactorings
This commit is contained in:
@@ -23,6 +23,7 @@ import java.util.Scanner;
|
||||
* @author JPEXS
|
||||
*/
|
||||
public class ConsoleAbortRetryIgnoreHandler implements AbortRetryIgnoreHandler {
|
||||
|
||||
int errorCount = 0;
|
||||
int errorMode;
|
||||
int retryCount;
|
||||
@@ -31,19 +32,18 @@ public class ConsoleAbortRetryIgnoreHandler implements AbortRetryIgnoreHandler {
|
||||
this.errorMode = errorMode;
|
||||
this.retryCount = retryCount;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public int handle(Throwable thrown) {
|
||||
if (errorMode != AbortRetryIgnoreHandler.UNDEFINED){
|
||||
if (errorMode != AbortRetryIgnoreHandler.UNDEFINED) {
|
||||
int result = errorMode;
|
||||
|
||||
|
||||
if (errorMode == AbortRetryIgnoreHandler.RETRY && errorCount < retryCount) {
|
||||
errorCount++;
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
result = AbortRetryIgnoreHandler.IGNORE;
|
||||
}
|
||||
|
||||
|
||||
return result;
|
||||
}
|
||||
Scanner sc = new Scanner(System.in);
|
||||
|
||||
Reference in New Issue
Block a user