static final String method1519(Throwable throwable, int i) throws IOException {
        String s;
        if (!(throwable instanceof GameRuntimeException)) {
            s = "";
        } else {
            GameRuntimeException exception = (GameRuntimeException) throwable;
            throwable = exception.throwable;
            s = exception.msg + " | ";
        }
        StringWriter stringwriter = new StringWriter();
        if (i != 41) {
            return null;
        }
        PrintWriter printwriter = new PrintWriter(stringwriter);
        throwable.printStackTrace(printwriter);
        printwriter.close();
        String s1 = stringwriter.toString();
        BufferedReader bufferedreader = new BufferedReader(new StringReader(s1));
        String s2 = bufferedreader.readLine();
        do {
            String s3 = bufferedreader.readLine();
            if (s3 != null) {
                int j = s3.indexOf('(');
                int k = s3.indexOf(')', 1 + j);
                String s4;
                if (j != -1) {
                    s4 = s3.substring(0, j);
                } else {
                    s4 = s3;
                }
                s4 = s4.trim();
                s4 = s4.substring(s4.lastIndexOf(' ') - -1);
                s4 = s4.substring(s4.lastIndexOf('\t') + 1);
                s = s + s4;
                if (j != -1 && k != -1) {
                    int l = s3.indexOf(".java:", j);
                    if (l >= 0) {
                        s = s + s3.substring(5 + l, k);
                    }
                }
                s = s + ' ';
            } else {
                s = s + "| " + s2;
                return s;
            }
        } while (true);
    }