Class RichErrorMessageLoader

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

public class RichErrorMessageLoader extends Object
Loads rich error messages from individual .txt resource files listed in a manifest. Each .txt file is named by error code (e.g., E01010.txt) and contains the message text with structured sections like [DIAGNOSIS], [ACTION], [SEE ALSO].

This externalization allows researchers to create alternative message packs (studying how different error message styles affect AI behavior) without modifying Java code.

  • Constructor Details

    • RichErrorMessageLoader

      public RichErrorMessageLoader()
  • Method Details

    • loadAll

      public Map<String,String> loadAll()
      Load all rich error messages from manifest-listed .txt resource files.
      Returns:
      unmodifiable map of error code to message text