Package com.ranull.graves.util
Class YAMLUtil.YamlParseError
java.lang.Object
com.ranull.graves.util.YAMLUtil.YamlParseError
- Enclosing class:
YAMLUtil
Represents a YAML parsing/validation failure.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal intThe 1-based column number where the parsing error occurred, or-1if unknown.final @Nullable StringA formatted snippet from the disk file around the reported error location, ornullif unavailable.final @Nullable StringA formatted snippet from the bundled resource used as the expected reference, ornullif unavailable.final intThe 1-based line number where the parsing error occurred, or-1if unknown.final @NotNull StringThe raw error message reported by the underlying YAML loader.final @Nullable StringBest-effort key name inferred near the reported error location, ornullif none can be determined. -
Constructor Summary
ConstructorsConstructorDescriptionYamlParseError(int line, int column, @NotNull String message, @Nullable String nearKey, @Nullable String diskSnippet, @Nullable String expectedJarSnippet) Creates a new YAML parse error container. -
Method Summary
-
Field Details
-
line
public final int lineThe 1-based line number where the parsing error occurred, or-1if unknown. -
column
public final int columnThe 1-based column number where the parsing error occurred, or-1if unknown. -
message
The raw error message reported by the underlying YAML loader. -
nearKey
Best-effort key name inferred near the reported error location, ornullif none can be determined. -
diskSnippet
A formatted snippet from the disk file around the reported error location, ornullif unavailable. -
expectedJarSnippet
A formatted snippet from the bundled resource used as the expected reference, ornullif unavailable.
-
-
Constructor Details
-
YamlParseError
public YamlParseError(int line, int column, @NotNull @NotNull String message, @Nullable @Nullable String nearKey, @Nullable @Nullable String diskSnippet, @Nullable @Nullable String expectedJarSnippet) Creates a new YAML parse error container.- Parameters:
line- The 1-based line number, or-1if unknown.column- The 1-based column number, or-1if unknown.message- The raw error message from the YAML loader.nearKey- Best-effort key name near the error location, ornull.diskSnippet- Formatted disk snippet around the error location, ornull.expectedJarSnippet- Formatted snippet from the bundled resource for comparison, ornull.
-