Exception: Kumi::Core::Errors::CompilerBug

Inherits:
Error
  • Object
show all
Defined in:
lib/kumi/core/errors.rb

Overview

An internal compiler invariant was violated — a “this should never happen” condition, not a problem with the user’s schema. Raising this (instead of a bare RuntimeError or a SemanticError) keeps invariant failures from being presented to users as if they wrote bad input, and frames them as a bug to report.

Instance Method Summary collapse

Constructor Details

#initialize(message) ⇒ CompilerBug

Returns a new instance of CompilerBug.



70
71
72
# File 'lib/kumi/core/errors.rb', line 70

def initialize(message)
  super("internal compiler error (please report): #{message}")
end