org.springframework.web.bind
Class MissingServletRequestParameterException

java.lang.Object
  extended by ServletException
      extended by org.springframework.web.util.NestedServletException
          extended by org.springframework.web.bind.ServletRequestBindingException
              extended by org.springframework.web.bind.MissingServletRequestParameterException

public class MissingServletRequestParameterException
extends ServletRequestBindingException

ServletRequestBindingException subclass that indicates a missing parameter.

Since:
2.0.2
Author:
Juergen Hoeller

Field Summary
private  java.lang.String parameterName
           
private  java.lang.String parameterType
           
 
Constructor Summary
MissingServletRequestParameterException(java.lang.String parameterName, java.lang.String parameterType)
          Constructor for MissingServletRequestParameterException.
 
Method Summary
 java.lang.String getMessage()
          Return the detail message, including the message from the nested exception if there is one.
 java.lang.String getParameterName()
          Return the name of the offending parameter.
 java.lang.String getParameterType()
          Return the expected type of the offending parameter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

parameterName

private final java.lang.String parameterName

parameterType

private final java.lang.String parameterType
Constructor Detail

MissingServletRequestParameterException

public MissingServletRequestParameterException(java.lang.String parameterName,
                                               java.lang.String parameterType)
Constructor for MissingServletRequestParameterException.

Parameters:
parameterName - the name of the missing parameter
parameterType - the expected type of the missing parameter
Method Detail

getMessage

public java.lang.String getMessage()
Description copied from class: NestedServletException
Return the detail message, including the message from the nested exception if there is one.

Overrides:
getMessage in class NestedServletException

getParameterName

public final java.lang.String getParameterName()
Return the name of the offending parameter.


getParameterType

public final java.lang.String getParameterType()
Return the expected type of the offending parameter.