[Cherbot-commit] SF.net SVN: cherbot: [68] trunk/src/net/sf/cherbot/PersistentModule.java
Status: Alpha
Brought to you by:
christianhujer
|
From: <chr...@us...> - 2007-06-16 22:13:33
|
Revision: 68
http://svn.sourceforge.net/cherbot/?rev=68&view=rev
Author: christianhujer
Date: 2007-06-16 15:13:30 -0700 (Sat, 16 Jun 2007)
Log Message:
-----------
Added SQLException to persistence methods.
Modified Paths:
--------------
trunk/src/net/sf/cherbot/PersistentModule.java
Modified: trunk/src/net/sf/cherbot/PersistentModule.java
===================================================================
--- trunk/src/net/sf/cherbot/PersistentModule.java 2007-06-16 21:29:50 UTC (rev 67)
+++ trunk/src/net/sf/cherbot/PersistentModule.java 2007-06-16 22:13:30 UTC (rev 68)
@@ -8,6 +8,7 @@
import org.jetbrains.annotations.NotNull;
import java.sql.Connection;
+import java.sql.SQLException;
/** A module provides a specific feature for CherBot.
* @author <a href="mailto:ch...@ri...">Christian Hujer</a>
@@ -16,12 +17,14 @@
/** Instructs this module to load its data.
* @param con Database connection for persistence.
+ * @throws SQLException in case of persistence problems.
*/
- void load(@NotNull Connection con);
+ void load(@NotNull Connection con) throws SQLException;
/** Instructs this module to save its data.
* @param con Database connection for persistence.
+ * @throws SQLException in case of persistence problems.
*/
- void save(@NotNull Connection con);
+ void save(@NotNull Connection con) throws SQLException;
} // interface Module
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|