HTError.nestedClass constructor

HTError.nestedClass({
  1. String? extra,
  2. String? correction,
  3. String? filename,
  4. int? line,
  5. int? column,
  6. int? offset,
  7. int? length,
})

Error: external constructor on a normal class. Error: Nested class within another nested class.

Implementation

// HTError.externalCtor(
//     {String? extra,
//     String? correction,
//     String? filename,
//     int? line,
//     int? column,
//     int? offset,
//     int? length})
//     : this(ErrorCode.external, ErrorType.syntacticError,
//           message: HTLocale.current.errorExternalCtor,
//           extra: extra,
//           correction: correction,
//           filename: filename,
//           line: line,
//           column: column,
//           offset: offset,
//           length: length);

/// Error: Nested class within another nested class.
HTError.nestedClass(
    {String? extra,
    String? correction,
    String? filename,
    int? line,
    int? column,
    int? offset,
    int? length})
    : this(ErrorCode.nestedClass, ErrorType.syntacticError,
          message: HTLocale.current.errorNestedClass,
          extra: extra,
          correction: correction,
          filename: filename,
          line: line,
          column: column,
          offset: offset,
          length: length);