Class: RelicLink::Errors::ServerError

Inherits:
Faraday::Error
  • Object
show all
Defined in:
lib/relic_link/errors/server_error.rb

Overview

Base wrapper for API server errors.

Direct Known Subclasses

HttpRequestError, ParsingError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, response) ⇒ ServerError

Returns a new instance of ServerError.



9
10
11
12
# File 'lib/relic_link/errors/server_error.rb', line 9

def initialize(message, response)
  @response = response
  super(message)
end

Instance Attribute Details

#responseObject (readonly)

Returns the value of attribute response.



7
8
9
# File 'lib/relic_link/errors/server_error.rb', line 7

def response
  @response
end