Class RuntimeError

All Implemented Interfaces:
Serializable

public class RuntimeError extends RuntimeException
Internal execution failure paired with the token that caused it.
See Also:
  • Field Details

    • token

      public final Token token
      Token used to report the failure's source line.
  • Constructor Details

    • RuntimeError

      public RuntimeError(Token token, String message)
      Creates an internal runtime failure.
      Parameters:
      token - token responsible for the failure
      message - user-facing error description