Exception: Rxrb::Rx::ValidationError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/rxrb/rx.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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(message, path)
  @message = message
  @path = path
end

Instance Attribute Details

#pathObject

Returns the value of attribute path.



91
92
93
# File 'lib/rxrb/rx.rb', line 91

def path
  @path
end

Instance Method Details

#inspectObject



106
107
108
# File 'lib/rxrb/rx.rb', line 106

def inspect
  "#{@message} (#{@path})"
end

#messageObject



102
103
104
# File 'lib/rxrb/rx.rb', line 102

def message
  "#{@message} (#{@path})"
end

#to_sObject



110
111
112
# File 'lib/rxrb/rx.rb', line 110

def to_s
  inspect
end