Exception: Rets::InvalidRequest
- Inherits:
-
ArgumentError
- Object
- ArgumentError
- Rets::InvalidRequest
- Defined in:
- lib/rets.rb
Instance Attribute Summary collapse
-
#error_code ⇒ Object
readonly
Returns the value of attribute error_code.
-
#reply_text ⇒ Object
readonly
Returns the value of attribute reply_text.
Instance Method Summary collapse
-
#initialize(error_code, reply_text) ⇒ InvalidRequest
constructor
A new instance of InvalidRequest.
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_code ⇒ Object (readonly)
Returns the value of attribute error_code.
22 23 24 |
# File 'lib/rets.rb', line 22 def error_code @error_code end |
#reply_text ⇒ Object (readonly)
Returns the value of attribute reply_text.
22 23 24 |
# File 'lib/rets.rb', line 22 def reply_text @reply_text end |