Response.invalidParameter constructor

Response.invalidParameter(
  1. Request request,
  2. String path,
  3. String expectation
)

Initialize a newly created instance to represent an error condition caused by a request that had invalid parameter. path is the path to the invalid parameter, in Javascript notation (e.g. "foo.bar" means that the parameter "foo" contained a key "bar" whose value was the wrong type). expectation is a description of the type of data that was expected.

Implementation

Response.invalidParameter(Request request, String path, String expectation)
    : this(request.id,
          error: RequestError(RequestErrorCode.INVALID_PARAMETER,
              "Invalid parameter '$path'. $expectation."));