MoneyParseException.fromValue constructor
MoneyParseException.fromValue({})
Implementation
factory MoneyParseException.fromValue(
{required String compressedPattern,
required int patternIndex,
required String compressedValue,
required int monetaryIndex,
required String monetaryValue}) {
final message = '''
$monetaryValue contained an unexpected character '${compressedValue[monetaryIndex]}' at pos $monetaryIndex
when a match for pattern character ${compressedPattern[patternIndex]} at pos $patternIndex was expected.''';
return MoneyParseException(message);
}