Skip to content

Instantly share code, notes, and snippets.

@mchmielarz
Last active December 17, 2018 21:24
Show Gist options
  • Save mchmielarz/369b5e1a85df59fb2049a52b5b98f6ca to your computer and use it in GitHub Desktop.
Save mchmielarz/369b5e1a85df59fb2049a52b5b98f6ca to your computer and use it in GitHub Desktop.
Old, "good" way to handle exceptions
try {
database.start();
  fetchMeasurements(geoCoordinatesReader, airlyService, measurementsRepository);
} catch (SQLException exc) {
  log.error("Cannot start the database", exc);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment