Валидатор пишет - Неизвестная ошибка.. подскажите в чем моя ошибка?
package com.javarush.task.task09.task0929;
import java.io.*;
/*
Обогатим код функциональностью!
*/
public class Solution {
public static void main(String[] args) throws IOException {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
InputStream fileInputStream = null;
OutputStream fileOutputStream = null;
String sourceFileName;
String destinationFileName;
try {
sourceFileName =reader.readLine();
fileInputStream = getInputStream(sourceFileName);
} catch (IOException e) {
System.out.println("Файл не существует.");
try {
sourceFileName = reader.readLine();
fileInputStream = getInputStream(sourceFileName);
} catch (IOException e2) {
System.out.println("Файл не существует.");
//System.exit(0);
}
destinationFileName = reader.readLine();
fileOutputStream = getOutputStream(destinationFileName);
while (fileInputStream.available() > 0) {
int data = fileInputStream.read();
fileOutputStream.write(data);
}
fileInputStream.close();
fileOutputStream.close();
}
}
public static InputStream getInputStream(String fileName) throws IOException {
return new FileInputStream(fileName);
}
public static OutputStream getOutputStream(String fileName) throws IOException {
return new FileOutputStream(fileName);
}
}