Class VerboseErrorMessages

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

public final class VerboseErrorMessages extends Object
Provides verbose error messages for AI-assisted development. These detailed messages are appended to error output when error level E3 is enabled, helping AI assistants understand and resolve EK9 compilation errors more effectively.

This class is a pure lookup - it contains no state. The decision of whether to include verbose messages is made by ErrorListener.Details.isVerboseEnabled() based on the per-compilation error level from CompilerFlags.

Each error code has a verbose message containing:

  • COMMON CAUSES - typical reasons for this error
  • TO FIX - suggested remediation steps
  • DISTINCTION - clarification from similar error codes
  • Method Details

    • getVerboseMessage

      public static String getVerboseMessage(String errorCode)
      Get the verbose message for an error code.
      Parameters:
      errorCode - The error code (e.g., "E50001")
      Returns:
      The verbose message, or null if not found