Exception: Yrpc::Error::ResponseError
- Inherits:
-
StandardError
- Object
- StandardError
- Yrpc::Error::ResponseError
- Defined in:
- lib/yrpc/error/response_error.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(code, message) ⇒ ResponseError
constructor
A new instance of ResponseError.
Constructor Details
#initialize(code, message) ⇒ ResponseError
Returns a new instance of ResponseError.
6 7 8 9 |
# File 'lib/yrpc/error/response_error.rb', line 6 def initialize(code, ) super() @code = code end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
4 5 6 |
# File 'lib/yrpc/error/response_error.rb', line 4 def code @code end |