Exception: Html2Pdf::Rails::RequestError
- Inherits:
-
StandardError
- Object
- StandardError
- Html2Pdf::Rails::RequestError
- Defined in:
- lib/html2pdf/rails/errors.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(response, msg = nil) ⇒ RequestError
constructor
A new instance of RequestError.
Constructor Details
#initialize(response, msg = nil) ⇒ RequestError
9 10 11 12 13 |
# 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 |
Instance Attribute Details
#response ⇒ Object (readonly)
Returns the value of attribute response.
7 8 9 |
# File 'lib/html2pdf/rails/errors.rb', line 7 def response @response end |