Exception: CommunityZero::RestError

Inherits:
Error
  • Object
show all
Defined in:
lib/community_zero/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(response_code, error) ⇒ RestError

Returns a new instance of RestError.



27
28
29
30
# File 'lib/community_zero/errors.rb', line 27

def initialize(response_code, error)
  @response_code = response_code
  @error = error
end

Instance Attribute Details

#errorObject (readonly)

Returns the value of attribute error.



25
26
27
# File 'lib/community_zero/errors.rb', line 25

def error
  @error
end

#response_codeObject (readonly)

Returns the value of attribute response_code.



25
26
27
# File 'lib/community_zero/errors.rb', line 25

def response_code
  @response_code
end