better exception handling

PHOTO EMBED

Tue Oct 25 2022 23:46:59 GMT+0000 (Coordinated Universal Time)

Saved by @DonYall #java

File f;
try {
  f = new File("file.txt");
  // More stuff
} catch (FileNotFoundException e1) {
  System.out.println("That file doesn't exist!");
  f = new File("backupFile.txt");
} catch (SomeOtherException e2) {
  // Handle other exception
}
content_copyCOPY