Exception: TypedParams::InvalidParameterError
- Inherits:
-
StandardError
- Object
- StandardError
- TypedParams::InvalidParameterError
- Defined in:
- lib/typed_params.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#path ⇒ Object
readonly
Returns the value of attribute path.
-
#source ⇒ Object
readonly
Returns the value of attribute source.
Instance Method Summary collapse
-
#initialize(message, source:, path:) ⇒ InvalidParameterError
constructor
A new instance of InvalidParameterError.
- #inspect ⇒ Object
Constructor Details
#initialize(message, source:, path:) ⇒ InvalidParameterError
Returns a new instance of InvalidParameterError.
86 87 88 89 90 91 |
# File 'lib/typed_params.rb', line 86 def initialize(, source:, path:) @source = source @path = path super() end |
Instance Attribute Details
#path ⇒ Object (readonly)
Returns the value of attribute path.
83 84 85 |
# File 'lib/typed_params.rb', line 83 def path @path end |
#source ⇒ Object (readonly)
Returns the value of attribute source.
83 84 85 |
# File 'lib/typed_params.rb', line 83 def source @source end |
Instance Method Details
#inspect ⇒ Object
93 94 95 |
# File 'lib/typed_params.rb', line 93 def inspect "#<#{self.class.name} message=#{message.inspect} source=#{source.inspect} path=#{path.inspect}>" end |