/*****************************************************
 * jr generated file
 ****************************************************/
import java.lang.*;
import java.io.*;
import edu.ucdavis.jr.*;
import edu.ucdavis.jr.jrx.*;
import java.rmi.*;
import java.io.Serializable;

public class Cap_ext_ThrowsUnregVoterException extends Cap_ext
{
    public static Cap_ext_ThrowsUnregVoterException noop = new Cap_ext_ThrowsUnregVoterException(true);
    public Cap_ext_ThrowsUnregVoterException()
    {}
    private Cap_ext_ThrowsUnregVoterException(boolean noop)
    {
	super(noop);
    }
    public Cap_ext_ThrowsUnregVoterException(Cap_ext theCap)
    {
	super(theCap);
    }
    public Cap_ext_ThrowsUnregVoterException(Cap_ext theCap, String ret)
    {
	super(theCap, ret);
    }
    public Cap_ext_ThrowsUnregVoterException(Op_ext.JRProxyOp theop)
    {
	super(theop);
    }
    public Cap_ext_ThrowsUnregVoterException(Op_ext.JRProxyOp theop, String ret)
    {
	super(theop, ret);
    }
    public java.lang.Object call(long JRtimestamp, java.lang.Object [] args)
      throws UnregVoterException
    {
try {
		if (is_noop) {
			if (ret.equals("int"))
				return (int) 0;
			else if (ret.equals("byte"))
				return (byte) 0;
			else if (ret.equals("short"))
				return (short) 0;
			else if (ret.equals("long"))
				return (long) 0;
			else if (ret.equals("boolean"))
				return (boolean) false;
			else if (ret.equals("char"))
				return (char) '\0';
			 else if (ret.equals("float"))
				return (float) 0.0F;
			else if (ret.equals("double"))
				return (double) 0.0;
			else
				return null;

		}
		return this.theop.call(JRtimestamp, args);
    } catch (java.lang.Exception e) {
    	if( e instanceof UnregVoterException)			throw (UnregVoterException)e;
		}
		return null;
    }
    public Cap_ext cocall(long JRtimestamp, java.lang.Object [] args) throws UnregVoterException
    {
	try {
	if (is_noop) {
		Op_ext.JRProxyOp myretOp = new Op_ext_ThrowsUnregVoterException.JRProxyOp(new InOp_ext_impl());
		myretOp.send(jrvm.getTimestamp(), args);
		return new Cap_ext_ThrowsUnregVoterException(myretOp);
	}
;
	return this.theop.cocall(JRtimestamp, args);
	 } catch (RemoteException re) {throw new edu.ucdavis.jr.jrCommunicationException(re); }
    catch (java.lang.Exception e) {
    	if( e instanceof UnregVoterException)			throw (UnregVoterException)e;
		}
		return null;
    }
    public Cap_ext cocall(long JRtimestamp, edu.ucdavis.jr.RemoteHandler handler, Cap_ext fretOp, java.lang.Object [] args)
    {
	try {
	if (is_noop) {
		Op_ext.JRProxyOp myretOp = new Op_ext_ThrowsUnregVoterException.JRProxyOp(new InOp_ext_impl());
		myretOp.send(jrvm.getTimestamp(), handler, args);
		return new Cap_ext_ThrowsUnregVoterException(myretOp);
	}
;
	return this.theop.cocall(JRtimestamp, handler, fretOp, args);
	 } catch (RemoteException re) {throw new edu.ucdavis.jr.jrCommunicationException(re); }
    }
    public Cap_ext cosend(long JRtimestamp, Op_ext.JRProxyOp retOp, edu.ucdavis.jr.RemoteHandler handler, Exception e, java.lang.Object [] args)
    {
	try {
	if (is_noop) {
		Op_ext.JRProxyOp myretOp = new Op_ext_ThrowsUnregVoterException.JRProxyOp(new InOp_ext_impl());
		myretOp.send(jrvm.getTimestamp(), args);
		return new Cap_ext_ThrowsUnregVoterException(myretOp);
	}
	return this.theop.cosend(JRtimestamp, retOp, handler, e, args);
	 } catch (RemoteException re) { throw new edu.ucdavis.jr.jrCommunicationException(re); }
    }
    public Object clone()
    {
    Cap_ext_ThrowsUnregVoterException obj = (Cap_ext_ThrowsUnregVoterException)super.clone();
    return obj;
    }
}
