Class QuerystringParsingException

java.lang.Object
java.lang.Throwable
java.lang.Exception
io.github.grumpystuff.grumpyrest.request.querystring.QuerystringParsingException
All Implemented Interfaces:
Serializable

public class QuerystringParsingException extends Exception
Represents one or more errors from parsing the querystring. This is different from a FromStringParserException in that the latter only describes a problem with a single field.
See Also:
  • Constructor Details

    • QuerystringParsingException

      public QuerystringParsingException(Map<String,String> fieldErrors)
      Creates an instance from a set of field errors, represented as a field-name-to-error map.
      Parameters:
      fieldErrors - the field errors
  • Method Details

    • getFieldErrors

      public final Map<String,String> getFieldErrors()
      Getter for the field errors
      Returns:
      the field errors