sharedobj/src/SharedObjError.i3


                            -*- Mode: Modula-3 -*- 
 * 
 * For information about this program, contact Blair MacIntyre            
 * (bm@cs.columbia.edu) or Steven Feiner (feiner@cs.columbia.edu)         
 * at the Computer Science Dept., Columbia University,                    
 * 1214 Amsterdam Ave. Mailstop 0401, New York, NY, 10027.                
 *                                                                        
 * Copyright (C) 1995, 1996 by The Trustees of Columbia University in the 
 * City of New York.  Blair MacIntyre, Computer Science Department.       
 * See file COPYRIGHT-COLUMBIA for details.
 * 
 * Author          : Blair MacIntyre
 * Created On      : Mon Sep 18 12:42:29 1995
 * Last Modified By: Blair MacIntyre
 * Last Modified On: Fri Nov 22 14:01:41 1996
 * Update Count    : 5
 * 
 * $Source: /usr/cvs/cm3/m3-comm/sharedobj/src/SharedObjError.i3,v $
 * $Date: 2001-12-02 13:41:16 $
 * $Author: wagner $
 * $Revision: 1.2 $
 * 
 * $Log: SharedObjError.i3,v $
 * Revision 1.2  2001-12-02 13:41:16  wagner
 * add copyright notes, fix overrides for cm3, and make everything compile(except tests)
 *
 * added: sharedobj/COPYRIGHT-COLUMBIA
 * added: sharedobj/src/COPYRIGHT-COLUMBIA
 * modified: sharedobj/src/LocalObjectSpace.i3
 * modified: sharedobj/src/LocalObjectSpace.m3
 * modified: sharedobj/src/Message.i3
 * modified: sharedobj/src/Message.m3
 * modified: sharedobj/src/ObjCopy.i3
 * modified: sharedobj/src/ObjCopy.m3
 * modified: sharedobj/src/ObjectInfo.i3
 * modified: sharedobj/src/ObjectInfo.m3
 * modified: sharedobj/src/ObjectSpace.i3
 * modified: sharedobj/src/ObjectSpace_FindObjCallBack_v1.i3
 * modified: sharedobj/src/ObjectSpace_FindObjCallBack_v1.m3
 * modified: sharedobj/src/ObjectSpace_FindObjCallBack_v2.i3
 * modified: sharedobj/src/ObjectSpace_FindObjCallBack_v2.m3
 * modified: sharedobj/src/ObjectSpace_T_v1.i3
 * modified: sharedobj/src/ObjectSpace_T_v1.m3
 * modified: sharedobj/src/ObjectSpace_T_v2.i3
 * modified: sharedobj/src/ObjectSpace_T_v2.m3
 * modified: sharedobj/src/SharedObj.i3
 * modified: sharedobj/src/SharedObjError.i3
 * modified: sharedobj/src/SharedObjF.i3
 * modified: sharedobj/src/SharedObjF.m3
 * modified: sharedobj/src/SharedObjRT.i3
 * modified: sharedobj/src/SharedObjRT.m3
 * modified: sharedobj/src/SharedObjRTF.i3
 * modified: sharedobj/src/SharedObjRep.i3
 * modified: sharedobj/src/SharedObjRep.m3
 * modified: sharedobj/src/SharedObjStubLib.i3
 * modified: sharedobj/src/SharedObjStubLib.m3
 * modified: sharedobj/src/SpaceConn.i3
 * modified: sharedobj/src/SpaceConn.m3
 * modified: sharedobj/src/WeakerRef.i3
 * modified: sharedobj/src/WeakerRef.m3
 * modified: sharedobj/src/m3makefile
 * modified: sharedobj/src/m3overrides
 * modified: sharedobj/tests/netobjtest/src/m3makefile
 * modified: sharedobj/tests/obsequence/src/m3makefile
 * modified: sharedobj/tests/tracker/src/m3makefile
 *
 * Revision 1.1.1.1  2001/12/02 13:14:14  wagner
 * Blair MacIntyre's sharedobj package
 *
 * Revision 1.2  1996/11/22 19:01:46  bm
 * fixed header
 *
 * 
 * HISTORY
 

INTERFACE SharedObjError;

IMPORT SharedObj, Atom, AtomList;
Here are some procedures for raising SharedObj.Error exceptions conveniently:

PROCEDURE RaiseNetObjFailure (ec: AtomList.T) RAISES {SharedObj.Error};
Raise SharedObj.Error(AtomList.Cons(SharedObj.NetObjFailure, ec)).

PROCEDURE RaiseCommFailure (ec: AtomList.T) RAISES {SharedObj.Error};
Raise SharedObj.Error(AtomList.Cons(SharedObj.CommFailure, ec)).

PROCEDURE RaiseEventFailure (ec: AtomList.T) RAISES {SharedObj.Error};
Raise SharedObj.Error(AtomList.Cons(SharedObj.EventFailure, ec)).

PROCEDURE RaiseDeadObject () RAISES {SharedObj.Error};
Raise SharedObj.Error(AtomList.List1(SharedObj.DeadObject)).

PROCEDURE RaiseAlerted () RAISES {SharedObj.Error};
Raise SharedObj.Error(AtomList.List1(SharedObj.Alerted)).

PROCEDURE RaiseRecursiveUpdate() RAISES {SharedObj.Error};
Raise SharedObj.Error(AtomList.List1(SharedObj.RecursiveUpdate)).

PROCEDURE RaiseIPFailure (ec: AtomList.T) RAISES {SharedObj.Error};
Raise SharedObj.Error(AtomList.Cons(SharedObj.IPFailure, ec)).

PROCEDURE RaiseNetObjAlerted () RAISES {SharedObj.Error};
Raise SharedObj.Error(AtomList.List1(SharedObj.NetObjAlerted)).

PROCEDURE RaiseError(a: Atom.T) RAISES {SharedObj.Error};
Raise SharedObj.Error(AtomList.List1(a)).

END SharedObjError.