Exception: Wework::ResponseError
- Inherits:
-
StandardError
- Object
- StandardError
- Wework::ResponseError
- Defined in:
- lib/wework.rb
Instance Attribute Summary collapse
-
#error_code ⇒ Object
readonly
Returns the value of attribute error_code.
Instance Method Summary collapse
-
#initialize(errcode, errmsg = '') ⇒ ResponseError
constructor
A new instance of ResponseError.
Constructor Details
#initialize(errcode, errmsg = '') ⇒ ResponseError
Returns a new instance of ResponseError.
28 29 30 31 |
# File 'lib/wework.rb', line 28 def initialize(errcode, errmsg='') @error_code = errcode super "(#{error_code}) #{errmsg}" end |
Instance Attribute Details
#error_code ⇒ Object (readonly)
Returns the value of attribute error_code.
27 28 29 |
# File 'lib/wework.rb', line 27 def error_code @error_code end |