1 18 package org.apache.beehive.netui.pageflow; 19 20 21 24 public class ActionNotFoundException extends PageFlowException 25 { 26 private Object _form; 27 28 29 public ActionNotFoundException( String actionName, FlowController fc, Object form ) 30 { 31 super( actionName, fc ); 32 _form = form; 33 } 34 35 protected Object [] getMessageArgs() 36 { 37 return new Object []{ getActionName(), getFlowControllerURI(), _form != null ? _form.getClass().getName() : null }; 38 } 39 40 protected String [] getMessageParts() 41 { 42 String formDescrip = _form != null ? "(form " + _form.getClass().getName() + ") " : ""; 43 return new String []{ "Unable to find action ", " (form=", ") in Page Flow ", "." }; 44 } 45 46 protected Object getForm() 47 { 48 return _form; 49 } 50 51 55 public boolean causeMayBeSessionExpiration() 56 { 57 return false; 58 } 59 } 60 | Popular Tags |