In case of multiple exception handlers, exception must be caught first code example
Example: java catch multiple exceptions
catch(IOException | SQLException ex){
logger.error(ex);
throw new MyException(ex.getMessage());
}
catch(IOException | SQLException ex){
logger.error(ex);
throw new MyException(ex.getMessage());
}