1 16 17 package org.springframework.web.portlet.bind; 18 19 25 public class MissingPortletRequestParameterException extends PortletRequestBindingException { 26 27 private String parameterName; 28 29 private String parameterType; 30 31 32 37 public MissingPortletRequestParameterException(String parameterName, String parameterType) { 38 super(""); 39 this.parameterName = parameterName; 40 this.parameterType = parameterType; 41 } 42 43 44 public String getMessage() { 45 return "Required " + this.parameterType + " parameter '" + parameterName + "' is not present"; 46 } 47 48 51 public String getParameterName() { 52 return this.parameterName; 53 } 54 55 58 public String getParameterType() { 59 return this.parameterType; 60 } 61 62 } 63 | Popular Tags |