package test.stripes;

import net.sourceforge.stripes.action.ActionBean;
import net.sourceforge.stripes.action.ActionBeanContext;
import net.sourceforge.stripes.action.DefaultHandler;
import net.sourceforge.stripes.action.Resolution;

public class BadActionBean implements ActionBean {


	private ActionBeanContext context;


	@DefaultHandler
	public Resolution logged() {
		throw new IllegalStateException(
				"You can see this one in the logs and fix the problem. It is not caught by the catch (Throwable t) part");
	}


	public Resolution notLogged()  {
		throw new OutOfMemoryError(
				"You only have 16k of ram, but this isn't logged so good luck troubleshooting.");
	}


	public ActionBeanContext getContext() {
		return this.context;
	}


	public void setContext(ActionBeanContext context) {
		this.context = context;
	}
}

