Заполните поля для правильной обработки исключений
PrintWriter writer = null;
_______{
writer = new PrintWriter(new FileWriter("filename.txt"));
writer.write("Something");
Thread.sleep(100);
} _______ (_______ e) {
System.out.println("Some errors occurred: "+e.getMessage());
} _______{
writer.close();
}