blob: 4d2ee9e0aa3efc21d6209505e431270fd7404269 [file] [log] [blame]
package test.rmi.exceptionhandling;
import java.rmi.RemoteException;
import org.omg.CORBA.ORB;
public class ThrowerImpl implements Thrower {
public static MyRuntimeException myRuntimeException;
public static MyAppException myAppException;
final ORB orb;
public ThrowerImpl(ORB orb) {
this.orb = orb;
}
@Override
public void throwAppException() throws RemoteException, MyAppException {
throw myAppException;
}
@Override
public void throwRuntimeException() throws RemoteException {
throw myRuntimeException;
}
}