Class YAMLUtil.YamlParseError

java.lang.Object
com.ranull.graves.util.YAMLUtil.YamlParseError
Enclosing class:
YAMLUtil

public static class YAMLUtil.YamlParseError extends Object
Represents a YAML parsing/validation failure.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final int
    The 1-based column number where the parsing error occurred, or -1 if unknown.
    final @Nullable String
    A formatted snippet from the disk file around the reported error location, or null if unavailable.
    final @Nullable String
    A formatted snippet from the bundled resource used as the expected reference, or null if unavailable.
    final int
    The 1-based line number where the parsing error occurred, or -1 if unknown.
    final @NotNull String
    The raw error message reported by the underlying YAML loader.
    final @Nullable String
    Best-effort key name inferred near the reported error location, or null if none can be determined.
  • Constructor Summary

    Constructors
    Constructor
    Description
    YamlParseError(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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • line

      public final int line
      The 1-based line number where the parsing error occurred, or -1 if unknown.
    • column

      public final int column
      The 1-based column number where the parsing error occurred, or -1 if unknown.
    • message

      @NotNull public final @NotNull String message
      The raw error message reported by the underlying YAML loader.
    • nearKey

      @Nullable public final @Nullable String nearKey
      Best-effort key name inferred near the reported error location, or null if none can be determined.
    • diskSnippet

      @Nullable public final @Nullable String diskSnippet
      A formatted snippet from the disk file around the reported error location, or null if unavailable.
    • expectedJarSnippet

      @Nullable public final @Nullable String expectedJarSnippet
      A formatted snippet from the bundled resource used as the expected reference, or null if 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 -1 if unknown.
      column - The 1-based column number, or -1 if unknown.
      message - The raw error message from the YAML loader.
      nearKey - Best-effort key name near the error location, or null.
      diskSnippet - Formatted disk snippet around the error location, or null.
      expectedJarSnippet - Formatted snippet from the bundled resource for comparison, or null.