Exception: Granite::Action::SubjectTypeMismatchError
- Inherits:
-
ArgumentError
- Object
- ArgumentError
- Granite::Action::SubjectTypeMismatchError
- Defined in:
- lib/granite/action/subject.rb
Instance Method Summary collapse
-
#initialize(action_class, candidate, expected) ⇒ SubjectTypeMismatchError
constructor
A new instance of SubjectTypeMismatchError.
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 |