Exception: TypedParams::ValidationError
- Inherits:
-
StandardError
- Object
- StandardError
- TypedParams::ValidationError
- Defined in:
- lib/typed_params.rb
Instance Attribute Summary collapse
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(message, path: nil) ⇒ ValidationError
constructor
A new instance of ValidationError.
- #inspect ⇒ Object
Constructor Details
#initialize(message, path: nil) ⇒ ValidationError
Returns a new instance of ValidationError.
71 72 73 74 75 |
# File 'lib/typed_params.rb', line 71 def initialize(, path: nil) @path = path super() end |
Instance Attribute Details
#path ⇒ Object (readonly)
Returns the value of attribute path.
69 70 71 |
# File 'lib/typed_params.rb', line 69 def path @path end |
Instance Method Details
#inspect ⇒ Object
77 78 79 |
# File 'lib/typed_params.rb', line 77 def inspect "#<#{self.class.name} message=#{message.inspect} path=#{path.inspect}>" end |