Exception: Rx::ValidationError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, path) ⇒ ValidationError

Returns a new instance of ValidationError.



123
124
125
126
# File 'lib/rx/ruby/Rx.rb', line 123

def initialize(message, path)
  @message = message
  @path = path
end

Instance Attribute Details

#pathObject

Returns the value of attribute path.



121
122
123
# File 'lib/rx/ruby/Rx.rb', line 121

def path
  @path
end

Instance Method Details

#inspectObject



136
137
138
# File 'lib/rx/ruby/Rx.rb', line 136

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

#messageObject



132
133
134
# File 'lib/rx/ruby/Rx.rb', line 132

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

#to_sObject



140
141
142
# File 'lib/rx/ruby/Rx.rb', line 140

def to_s
  inspect
end