Class ForAIErrorPaths

java.lang.Object
org.ek9lang.compiler.common.ForAIErrorPaths

public final class ForAIErrorPaths extends Object
Maps compiler error codes to their corresponding path in forAI.json. AI assistants use these paths to find structured guidance for compiler errors, providing a faster alternative to fetching errors.html.

The paths use dot-notation to reference sections in forAI.json. For example, "excludedFeatures.break" points to the entry in the excludedFeatures.features array where keyword="break".

  • Method Details

    • getPath

      public static String getPath(String errorCode)
      Get the forAI.json path for an error code.
      Parameters:
      errorCode - The error code (e.g., "E01070")
      Returns:
      The forAI.json path, or null if no AI guidance available