Exception: Appom::UnsupportedBlockError

Inherits:
AppomError
  • Object
show all
Defined in:
lib/appom/exceptions.rb

Overview

Block/syntax errors

Instance Attribute Summary

Attributes inherited from AppomError

#context

Instance Method Summary collapse

Methods inherited from AppomError

#detailed_message

Constructor Details

#initialize(method_name, type) ⇒ UnsupportedBlockError

Returns a new instance of UnsupportedBlockError.



104
105
106
107
# File 'lib/appom/exceptions.rb', line 104

def initialize(method_name, type)
  super("#{type}##{method_name} does not accept blocks",
        { method: method_name, type: type })
end