Exception: ActiveInteractor::Error::InvalidContextClass
- Inherits:
-
StandardError
- Object
- StandardError
- ActiveInteractor::Error::InvalidContextClass
- Defined in:
- lib/active_interactor/error.rb
Overview
Raised when an invalid context class is assigned to an interactor.
Instance Attribute Summary collapse
-
#class_name ⇒ String|nil
readonly
The class name of the context used for debugging.
Instance Method Summary collapse
-
#initialize(class_name = nil) ⇒ InvalidContextClass
constructor
A new instance of InvalidContextClass.
Constructor Details
#initialize(class_name = nil) ⇒ InvalidContextClass
Returns a new instance of InvalidContextClass.
40 41 42 43 |
# File 'lib/active_interactor/error.rb', line 40 def initialize(class_name = nil) @class_name = class_name super("invalid context class #{class_name}") end |
Instance Attribute Details
#class_name ⇒ String|nil (readonly)
The class name of the context used for debugging.
37 38 39 40 41 42 43 44 |
# File 'lib/active_interactor/error.rb', line 37 class InvalidContextClass < StandardError attr_reader :class_name def initialize(class_name = nil) @class_name = class_name super("invalid context class #{class_name}") end end |