Use PersistenceException rather than IOException.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@345 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2001-09-21 03:15:02 +00:00
parent 2fb833fd5b
commit da5cc91882
2 changed files with 12 additions and 12 deletions
@@ -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
}
@@ -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;
}