Exception: Rxrb::Rx::ValidationError
- Inherits:
-
StandardError
- Object
- StandardError
- Rxrb::Rx::ValidationError
- Defined in:
- lib/rxrb/rx.rb
Instance Attribute Summary collapse
-
#path ⇒ Object
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(message, path) ⇒ ValidationError
constructor
A new instance of ValidationError.
- #inspect ⇒ Object
- #message ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize(message, path) ⇒ ValidationError
Returns a new instance of ValidationError.
93 94 95 96 |
# File 'lib/rxrb/rx.rb', line 93 def initialize(, path) @message = @path = path end |
Instance Attribute Details
#path ⇒ Object
Returns the value of attribute path.
91 92 93 |
# File 'lib/rxrb/rx.rb', line 91 def path @path end |
Instance Method Details
#inspect ⇒ Object
106 107 108 |
# File 'lib/rxrb/rx.rb', line 106 def inspect "#{@message} (#{@path})" end |
#message ⇒ Object
102 103 104 |
# File 'lib/rxrb/rx.rb', line 102 def "#{@message} (#{@path})" end |
#to_s ⇒ Object
110 111 112 |
# File 'lib/rxrb/rx.rb', line 110 def to_s inspect end |