public void transferMoney(Account from, Account to, double moneyToTransfer){ if(from == null || to == null || from.getMoney() < moneyToTransfer){ throw new RuntimeException(new FileNotFoundException()); } } catch(IOException | SQLException ex){ logger.error(ex); throw new MyException(ex.getMessage()); } public class MyClass implements MyInterface { public void find(int x) throws A_Exception, B_Exception{ ---- ---- --- } }import java.io.*; class Main { public static void findFile() throws NullPointerException, IOException, InvalidClassException { // code that may produce NullPointerException … … … // code that may produce IOException … … … // code that may produce InvalidClassException … … … } public static void main(String[] args) { try{ findFile(); } catch(IOException e1){ System.out.println(e1.getMessage()); } catch(InvalidClassException e2){ System.out.println(e2.getMessage()); } } }