ParserException constructor

ParserException(
  1. String message, {
  2. Object? cause,
})

Exception thrown when parsing fails.

This exception is thrown by Parser implementations when parsing fails.

Example:

throw ParserException('Failed to parse config', 'config.json');

Implementation

ParserException(super.message, {super.cause});