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


public class MyHandler extends java.lang.Object implements edu.ucdavis.jr.Handler, edu.ucdavis.jr.RemoteHandler {
    { JRinit(); }
    
    public MyHandler() {
        // Begin Expr2
        super();
        JRprocess();
    }
    
    public void handleUnregVoter(UnregVoterException e) {
        // Begin Expr2
        System.out.println("Unregistered voter attempting to vote");
    }
    protected boolean JRcalled = false;
    protected JRMyHandler jrresref;
    public Object JRgetjrresref()
    { try {return jrresref.clone(); } catch (Exception e) {/* not gonna happen */ return null; } }
    protected void JRinit() {
    	if(this.JRcalled) return;
    	jrresref = new JRMyHandler();
    	this.JRcalled = true;
    }
    private boolean JRproc = false;
    private void JRprocess() {
    	if (JRproc) return;
    	JRproc = true;
    }
    public void JRhandler(Exception e)
    {
    	if (e instanceof UnregVoterException)
    	{
    	  handleUnregVoter((UnregVoterException) e);
    	}
    	else
    	{
    	  throw new edu.ucdavis.jr.jrRuntimeError("Unexpected exception caught by handler object!\n" + e.toString());
    	}
    }
}
