Class: Interaktor::Error::OptionError

Inherits:
Base
  • Object
show all
Defined in:
lib/interaktor/error/option_error.rb

Direct Known Subclasses

UnknownOptionError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(interaktor, options) ⇒ OptionError

Returns a new instance of OptionError.

Parameters:

  • interaktor (Class)
  • options (Hash{Symbol=>Object})


7
8
9
10
11
# File 'lib/interaktor/error/option_error.rb', line 7

def initialize(interaktor, options)
  super(interaktor)

  @options = options
end

Instance Attribute Details

#optionsHash{Symbol=>Object} (readonly)

Returns:

  • (Hash{Symbol=>Object})


3
4
5
# File 'lib/interaktor/error/option_error.rb', line 3

def options
  @options
end

Instance Method Details

#messageObject

Raises:

  • (NotImplementedError)


13
14
15
# File 'lib/interaktor/error/option_error.rb', line 13

def message
  raise NotImplementedError
end