class BrowseEverything::DownloadError

Class for raising errors when a download is invalid

Attributes

response[R]

Public Class Methods

new(msg, response) click to toggle source

Constructor @param msg [String] @param response [Typhoeus::Response] response from the server

Calls superclass method
# File lib/browse_everything/retriever.rb, line 15
def initialize(msg, response)
  @response = response
  super(msg)
end

Public Instance Methods

message() click to toggle source

Generate the message for the exception @return [String]

# File lib/browse_everything/retriever.rb, line 22
def message
  "#{super}: #{response.body}"
end