Made ObjectAccessException a nestable exception; modified

objectAvailable() error dispatching to not incorrectly report a failure to
create an object.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@918 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2002-02-02 09:42:36 +00:00
parent c6d2529e78
commit 9d9872f606
4 changed files with 47 additions and 22 deletions
@@ -1,8 +1,10 @@
//
// $Id: ObjectAccessException.java,v 1.2 2001/10/11 04:07:52 mdb Exp $
// $Id: ObjectAccessException.java,v 1.3 2002/02/02 09:42:36 mdb Exp $
package com.threerings.presents.dobj;
import org.apache.commons.util.exception.NestableException;
/**
* An object access exception is delivered when an object is not
* accessible to a requesting subscriber for some reason or other. For
@@ -10,10 +12,32 @@ package com.threerings.presents.dobj;
* the error. For others, a message string explaining the access failure
* is provided.
*/
public class ObjectAccessException extends Exception
public class ObjectAccessException extends NestableException
{
/**
* Constructs a object access exception with the specified error
* message.
*/
public ObjectAccessException (String message)
{
super(message);
}
/**
* Constructs a object access exception with the specified error
* message and the chained causing event.
*/
public ObjectAccessException (String message, Exception cause)
{
super(message, cause);
}
/**
* Constructs a object access exception with the specified chained
* causing event.
*/
public ObjectAccessException (Exception cause)
{
super(cause);
}
}