From da5cc918821aaf1f66b59ac5dee8613d5896af40 Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Fri, 21 Sep 2001 03:15:02 +0000 Subject: [PATCH] Use PersistenceException rather than IOException. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@345 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- .../server/persist/DummySceneRepository.java | 8 ++++---- .../whirled/server/persist/SceneRepository.java | 16 ++++++++-------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/java/com/threerings/whirled/server/persist/DummySceneRepository.java b/src/java/com/threerings/whirled/server/persist/DummySceneRepository.java index 142c2a164..259d4020a 100644 --- a/src/java/com/threerings/whirled/server/persist/DummySceneRepository.java +++ b/src/java/com/threerings/whirled/server/persist/DummySceneRepository.java @@ -1,9 +1,9 @@ // -// $Id: DummySceneRepository.java,v 1.2 2001/08/14 06:51:07 mdb Exp $ +// $Id: DummySceneRepository.java,v 1.3 2001/09/21 03:15:02 mdb Exp $ package com.threerings.whirled.server.test; -import java.io.IOException; +import com.samskivert.io.PersistenceException; import com.threerings.whirled.Log; import com.threerings.whirled.data.Scene; @@ -19,7 +19,7 @@ public class DummySceneRepository implements SceneRepository { // documentation inherited public Scene loadScene (int sceneId) - throws IOException, NoSuchSceneException + throws PersistenceException, NoSuchSceneException { Log.info("Creating dummy scene [id=" + sceneId + "]."); return new DummyScene(sceneId); @@ -27,7 +27,7 @@ public class DummySceneRepository implements SceneRepository // documentation inherited public void updateScene (Scene scene) - throws IOException + throws PersistenceException { // nothing doing } diff --git a/src/java/com/threerings/whirled/server/persist/SceneRepository.java b/src/java/com/threerings/whirled/server/persist/SceneRepository.java index 12562f3c3..99861df10 100644 --- a/src/java/com/threerings/whirled/server/persist/SceneRepository.java +++ b/src/java/com/threerings/whirled/server/persist/SceneRepository.java @@ -1,9 +1,9 @@ // -// $Id: SceneRepository.java,v 1.2 2001/08/14 06:51:07 mdb Exp $ +// $Id: SceneRepository.java,v 1.3 2001/09/21 03:15:02 mdb Exp $ package com.threerings.whirled.server.persist; -import java.io.IOException; +import com.samskivert.io.PersistenceException; import com.threerings.whirled.data.Scene; import com.threerings.whirled.util.NoSuchSceneException; @@ -12,21 +12,21 @@ public interface SceneRepository /** * Fetches the scene with the specified scene id. * - * @exception IOException thrown if an error occurs attempting to load - * a scene. + * @exception PersistenceException thrown if an error occurs + * attempting to load a scene. * @exception NoSuchSceneException thrown if no scene exists with the * specified scene id. */ public Scene loadScene (int sceneId) - throws IOException, NoSuchSceneException; + throws PersistenceException, NoSuchSceneException; /** * Updates the specified scene in the repository with the information * provided in the scene object. * - * @exception IOException thrown if an error occurs attempting to - * update the scene. + * @exception PersistenceException thrown if an error occurs + * attempting to update the scene. */ public void updateScene (Scene scene) - throws IOException; + throws PersistenceException; }