1 18 package org.apache.beehive.netui.pageflow; 19 20 21 30 public class IllegalOutputFormTypeException extends IllegalOutputFormException 31 { 32 private String _requiredType; 33 34 35 42 public IllegalOutputFormTypeException( String forwardName, String actionName, FlowController flowController, 43 String outputFormType, String requiredType ) 44 { 45 super( forwardName, actionName, flowController, outputFormType ); 46 _requiredType = requiredType; 47 } 48 49 54 public String getRequiredType() 55 { 56 return _requiredType; 57 } 58 59 protected Object [] getMessageArgs() 60 { 61 return new Object []{ getForwardName(), getActionName(), getFlowControllerURI(), getOutputFormType(), 62 _requiredType }; 63 } 64 65 public String [] getMessageParts() 66 { 67 return new String [] 68 { 69 "The forward \"", "\" on action ", " in page flow ", " has a first output form of type ", 70 ", but is declared to require type ", "." 71 }; 72 } 73 } 74 | Popular Tags |