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
69 70 71 72 73 74 |
# File 'lib/typed_params.rb', line 69 def initialize(, source:, path:) @source = source @path = path super() end |
Instance Attribute Details
#path ⇒ Object (readonly)
Returns the value of attribute path.
66 67 68 |
# File 'lib/typed_params.rb', line 66 def path @path end |
#source ⇒ Object (readonly)
Returns the value of attribute source.
66 67 68 |
# File 'lib/typed_params.rb', line 66 def source @source end |
Instance Method Details
#inspect ⇒ Object
76 77 78 |
# File 'lib/typed_params.rb', line 76 def inspect "#<#{self.class.name} message=#{.inspect} source=#{source.inspect} path=#{path.inspect}>" end |