class Html2Pdf::Rails::RequestError

Attributes

response[R]

Public Class Methods

new(response, msg = nil) click to toggle source
Calls superclass method
# File lib/html2pdf/rails/errors.rb, line 9
def initialize(response, msg = nil)
  msg ||= "html2pdf request failed and got HTTP status #{response.code}"
  super(msg)
  @response = response
end