Class UndeclaredScriptVariableException

All Implemented Interfaces:
Serializable

public class UndeclaredScriptVariableException extends InvalidQualifierException
A :name inside a scripting block naming no declared variable — the same "invalid identifier" refusal as any other unresolvable name, and deliberately worded identically.

It is typed apart for one reason: live resolves a block's own names when the BLOCK is compiled, before any of it runs, so this refusal escapes bare — without the "Uncaught exception of type 'STATEMENT_ERROR'" sentence that wraps a statement which ran and failed. Every other unresolvable name (a column, a qualifier) belongs to the STATEMENT's compilation and is wrapped. Frostlake discovers this one while the statement runs rather than while the block compiles, so the type is what tells the block handler which side of that line it falls on.

See Also:
  • Constructor Details

    • UndeclaredScriptVariableException

      public UndeclaredScriptVariableException(String name)
    • UndeclaredScriptVariableException

      public UndeclaredScriptVariableException(String name, SourcePosition position)