1 18 package org.apache.beehive.netui.pageflow; 19 20 24 public class MismatchedActionOutputException extends PageFlowException 25 { 26 private String _actionOutputName; 27 private String _expectedType; 28 private String _actualType; 29 private String _forwardName; 30 31 public MismatchedActionOutputException( String actionName, FlowController flowController, String actionOutputName, 32 String forwardName, String expectedType, String actualType ) 33 { 34 super( actionName, flowController ); 35 _actionOutputName = actionOutputName; 36 _expectedType = expectedType; 37 _actualType = actualType; 38 _forwardName = forwardName; 39 } 40 41 protected Object [] getMessageArgs() 42 { 43 return new Object []{ _actionOutputName, _forwardName, getActionName(), getFlowControllerURI(), _actualType, 44 _expectedType }; 45 } 46 47 protected String [] getMessageParts() 48 { 49 return new String []{ "The action output \"", "\" on forward \"", "\" (action ", " in Page Flow ", ") is of type ", 50 ", but was declared to expect type ", "." }; 51 } 52 53 public String getActionOutputName() 54 { 55 return _actionOutputName; 56 } 57 58 public String getForwardName() 59 { 60 return _forwardName; 61 } 62 63 public String getExpectedType() 64 { 65 return _expectedType; 66 } 67 68 public String getActualType() 69 { 70 return _actualType; 71 } 72 73 77 public boolean causeMayBeSessionExpiration() 78 { 79 return false; 80 } 81 } 82 | Popular Tags |