Exception: Granite::Action::SubjectTypeMismatchError

Inherits:
ArgumentError
  • Object
show all
Defined in:
lib/granite/action/subject.rb

Instance Method Summary collapse

Constructor Details

#initialize(action_class, candidate, expected) ⇒ SubjectTypeMismatchError

Returns a new instance of SubjectTypeMismatchError.



10
11
12
# File 'lib/granite/action/subject.rb', line 10

def initialize(action_class, candidate, expected)
  super "Unable to initialize #{action_class} with #{candidate} as subject, expecting instance of #{expected}"
end