Exception: UmengPush::ResponseError
- Inherits:
-
StandardError
- Object
- StandardError
- UmengPush::ResponseError
- Defined in:
- lib/umeng_push/response_error.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
Returns the value of attribute data.
-
#error_code ⇒ Object
Returns the value of attribute error_code.
-
#message ⇒ Object
Returns the value of attribute message.
Instance Method Summary collapse
-
#initialize(error_code, data: {}, message: nil) ⇒ ResponseError
constructor
A new instance of ResponseError.
Constructor Details
#initialize(error_code, data: {}, message: nil) ⇒ ResponseError
Returns a new instance of ResponseError.
4 5 6 7 8 9 |
# File 'lib/umeng_push/response_error.rb', line 4 def initialize(error_code, data: {}, message: nil) @error_code = error_code @data = data @message = || super(@message) end |
Instance Attribute Details
#data ⇒ Object
Returns the value of attribute data.
3 4 5 |
# File 'lib/umeng_push/response_error.rb', line 3 def data @data end |
#error_code ⇒ Object
Returns the value of attribute error_code.
3 4 5 |
# File 'lib/umeng_push/response_error.rb', line 3 def error_code @error_code end |
#message ⇒ Object
Returns the value of attribute message.
3 4 5 |
# File 'lib/umeng_push/response_error.rb', line 3 def @message end |