TomlParserException.from constructor

TomlParserException.from(
  1. ParserException e
)

Converts a ParserException from petitparser to a TomlParserException.

Implementation

factory TomlParserException.from(ParserException e) => TomlParserException(
      message: e.message,
      source: e.source,
      offset: e.offset,
    );