error method

ConfigException error(
  1. String message, {
  2. Object? key,
})

Implementation

ConfigException error(String message, {Object? key}) {
  final node = key == null ? map : (_keyNode(key) ?? map);
  return ConfigException(message, span: SourceSpanLike.of(node), file: file);
}