ParseFailure

data class ParseFailure(val path: String, val reason: String, val parser: String)(source)

A non-fatal parse failure recorded during LST building. Surfaced via ExecutionDiagnostics.parseFailures so callers can see which files the parsers could not handle without having to scrape the logs.

The same file path may appear in more than one ParseFailure when several parsers have tried and failed on it — for example a pom.xml that trips MavenParser and also XmlParser produces one entry per parser.

Constructors

Link copied to clipboard
constructor(path: String, reason: String, parser: String)

Properties

Link copied to clipboard

The producer that gave up on this entry. Either a canonical parser name (e.g. "JavaParser", "MavenParser", "XmlParser") or — for malformed Maven coordinate strings encountered while assembling the LST classpath — the stage name ("DependencyResolutionStage", "BuildFileParseStage").

Link copied to clipboard

Project-relative source path, or — for non-file failures recorded by the classpath-resolution stages — the malformed Maven coordinate string itself.

Link copied to clipboard

Short, human-readable cause — typically the exception message from the parser, the ParseExceptionResult marker attached to a org.openrewrite.tree.ParseError, the literal text "silently dropped by <parser>" when a parser returned fewer files than it was given, or "illegal Maven coordinate" for coordinate-string failures from the classpath-resolution stages.