validate method

void validate()

Returns the errors of this request, if any.

Implementation

void validate() {
  final errors = errorStore.jsonErrors;
  if (errors.isNotEmpty) {
    throw AlfredException(400, {
      'errors': errors,
    });
  }
}