Skip to content

Instantly share code, notes, and snippets.

@pellse
Created November 6, 2017 22:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pellse/470fa95450bddb13a05d2cc0127b60b8 to your computer and use it in GitHub Desktop.
Save pellse/470fa95450bddb13a05d2cc0127b60b8 to your computer and use it in GitHub Desktop.
try {
List<Customer> customers = queryDatabaseForCustomers(); // Expected to throw SQLException
handleAllOrdersOf(customers); // Not expected to throw SQLException
} catch (SQLException e) {
// Handle the exception from queryDatabaseForCustomers()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment