Exception: Rets::InvalidRequest

Inherits:
ArgumentError
  • Object
show all
Defined in:
lib/rets.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(error_code, reply_text) ⇒ InvalidRequest

Returns a new instance of InvalidRequest.



44
45
46
47
48
# File 'lib/rets.rb', line 44

def initialize(error_code, reply_text)
  @error_code = error_code
  @reply_text = reply_text
  super("Got error code #{error_code} (#{reply_text})")
end

Instance Attribute Details

#error_codeObject (readonly)

Returns the value of attribute error_code.



43
44
45
# File 'lib/rets.rb', line 43

def error_code
  @error_code
end

#reply_textObject (readonly)

Returns the value of attribute reply_text.



43
44
45
# File 'lib/rets.rb', line 43

def reply_text
  @reply_text
end