class ActiveInteractor::Error::InvalidContextClass

Raised when an invalid {Context::Base context} class is assigned to an {Base interactor}.

@since 1.0.0

@!attribute [r] class_name

The class name of the {Context::Base context} used for debugging.

@return [String|nil] the class name of the {Context::Base context}

Attributes

class_name[R]

Public Class Methods

new(class_name = nil) click to toggle source
Calls superclass method
# File lib/active_interactor/error.rb, line 40
def initialize(class_name = nil)
  @class_name = class_name
  super("invalid context class #{class_name}")
end