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