Class MissingRequiredParameterException

All Implemented Interfaces:
Serializable

public class MissingRequiredParameterException extends BadRequestException

Thrown to indicates that a required parameter is missing to process the request.

The missing parameter could be any kind of request parameters: a query parameter, a header, a cookie, path parameter...

Since:
1.0
Author:
Jeremy Kuhn
See Also:
  • Constructor Details

    • MissingRequiredParameterException

      public MissingRequiredParameterException()

      Creates a missing required parameter exception.

    • MissingRequiredParameterException

      public MissingRequiredParameterException(String parameterName)

      Creates a missing required parameter exception for the specified parameter name.

      Parameters:
      parameterName - the name of the missing parameter
    • MissingRequiredParameterException

      public MissingRequiredParameterException(Throwable cause)

      Creates a missing required parameter exception with the specified cause.

      Parameters:
      cause - the cause
    • MissingRequiredParameterException

      public MissingRequiredParameterException(String parameterName, Throwable cause)

      Creates a missing required parameter exception with the specified parameter name and cause.

      Parameters:
      parameterName - the name of the missing parameter
      cause - the cause
  • Method Details

    • getParameterName

      public String getParameterName()

      Returns the name of the missing parameter.

      Returns:
      the missing parameter name or null