From c4065275cead9290b897973b8ea380ed02190969 Mon Sep 17 00:00:00 2001 From: Lukas Eder Date: Sun, 29 Apr 2012 13:29:14 +0200 Subject: [PATCH] Added "disclaimer" to tutorial. Exception handling is kept simple intentionally --- jOOQ-website/tutorial.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/jOOQ-website/tutorial.php b/jOOQ-website/tutorial.php index 62b83c022c..b4a0cfff32 100644 --- a/jOOQ-website/tutorial.php +++ b/jOOQ-website/tutorial.php @@ -236,7 +236,7 @@ import static test.generated.Tables.*; import static org.jooq.impl.Factory.*; public class Main { - public static void main(String[] args) throws Exception { + public static void main(String[] args) { Connection conn = null; String userName = "root"; @@ -247,6 +247,7 @@ public class Main { Class.forName("com.mysql.jdbc.Driver").newInstance(); conn = DriverManager.getConnection(url, userName, password); } catch (Exception e) { + // For the sake of this tutorial, let's keep exception handling simple e.printStackTrace(); } finally { if (conn != null) { @@ -347,6 +348,7 @@ public class Main { System.out.println("ID: " + id + " title: " + title + " desciption: " + description); } } catch (Exception e) { + // For the sake of this tutorial, let's keep exception handling simple e.printStackTrace(); } finally { if (conn != null) {