Exception: Yrpc::Error::ResponseError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/yrpc/error/response_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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, message)
  super(message)
  @code = code
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



4
5
6
# File 'lib/yrpc/error/response_error.rb', line 4

def code
  @code
end