Exception: StoreHours::SemanticError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/store_hours/semantic_error.rb

Overview

When parslet apply the TreeTransformer to the intermediary tree generated by parser, it may raise this exception if the input is valid syntax-wise but contains errors.

Possible scenarios to cause this exception are defined in tree_transformer.rb.

Instance Method Summary collapse

Constructor Details

#initialize(message) ⇒ SemanticError

Returns a new instance of SemanticError.



8
9
10
# File 'lib/store_hours/semantic_error.rb', line 8

def initialize(message)
  super(message)
end