Exception: Interpol::UnsupportedTypeError

Inherits:
ArgumentError
  • Object
show all
Defined in:
lib/interpol/errors.rb

Overview

Raised when an unsupported parameter type is defined.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type, options = {}) ⇒ UnsupportedTypeError

Returns a new instance of UnsupportedTypeError.



46
47
48
49
50
51
52
53
# File 'lib/interpol/errors.rb', line 46

def initialize(type, options = {})
  @type = type
  @options = options

  description = type.inspect
  description << " (#{options.inspect})" if options.any?
  super("No param parser can be found for #{description}")
end

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options.



44
45
46
# File 'lib/interpol/errors.rb', line 44

def options
  @options
end

#typeObject (readonly)

Returns the value of attribute type.



44
45
46
# File 'lib/interpol/errors.rb', line 44

def type
  @type
end