Exception: Interpol::UnsupportedTypeError
- Inherits:
-
ArgumentError
- Object
- ArgumentError
- Interpol::UnsupportedTypeError
- Defined in:
- lib/interpol/errors.rb
Overview
Raised when an unsupported parameter type is defined.
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(type, options = {}) ⇒ UnsupportedTypeError
constructor
A new instance of UnsupportedTypeError.
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, = {}) @type = type @options = description = type.inspect description << " (#{.inspect})" if .any? super("No param parser can be found for #{description}") end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
44 45 46 |
# File 'lib/interpol/errors.rb', line 44 def @options end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
44 45 46 |
# File 'lib/interpol/errors.rb', line 44 def type @type end |