HTError.unexpected constructor

HTError.unexpected(
  1. String whileParsing,
  2. String expected,
  3. String met, {
  4. String? extra,
  5. String? correction,
  6. String? filename,
  7. int? line,
  8. int? column,
  9. int? offset,
  10. int? length,
})

Error: Expected a token while met another.

Implementation

HTError.unexpected(String whileParsing, String expected, String met,
    {String? extra,
    String? correction,
    String? filename,
    int? line,
    int? column,
    int? offset,
    int? length})
    : this(ErrorCode.unexpected, ErrorType.syntacticError,
          message: HTLocale.current.errorUnexpected,
          interpolations: [whileParsing, expected, met],
          extra: extra,
          correction: correction,
          filename: filename,
          line: line,
          column: column,
          offset: offset,
          length: length);