Exception: Episodic::Platform::ResponseError

Inherits:
EpisodicPlatformException show all
Defined in:
lib/episodic/platform/exceptions.rb

Overview

An execption that is raised as a result of the response content.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, response) ⇒ ResponseError

Constructor

Parameters

message<String>

The message to include in the exception

response<Episodic::Platform::HTTPResponse>

The response object.



28
29
30
31
# File 'lib/episodic/platform/exceptions.rb', line 28

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

Instance Attribute Details

#responseObject (readonly)

Returns the value of attribute response.



18
19
20
# File 'lib/episodic/platform/exceptions.rb', line 18

def response
  @response
end