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.



23
24
25
26
27
# File 'lib/rets.rb', line 23

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.



22
23
24
# File 'lib/rets.rb', line 22

def error_code
  @error_code
end

#reply_textObject (readonly)

Returns the value of attribute reply_text.



22
23
24
# File 'lib/rets.rb', line 22

def reply_text
  @reply_text
end