Exception: RailsPdfRenderer::Error
- Inherits:
-
StandardError
- Object
- StandardError
- RailsPdfRenderer::Error
- Defined in:
- lib/rails/pdf/renderer/error.rb
Instance Attribute Summary collapse
-
#http_response ⇒ Object
Returns the value of attribute http_response.
Instance Method Summary collapse
-
#initialize(http_response) ⇒ Error
constructor
A new instance of Error.
- #message ⇒ Object
Constructor Details
#initialize(http_response) ⇒ Error
5 6 7 |
# File 'lib/rails/pdf/renderer/error.rb', line 5 def initialize(http_response) @http_response = http_response end |
Instance Attribute Details
#http_response ⇒ Object
Returns the value of attribute http_response.
3 4 5 |
# File 'lib/rails/pdf/renderer/error.rb', line 3 def http_response @http_response end |
Instance Method Details
#message ⇒ Object
9 10 11 |
# File 'lib/rails/pdf/renderer/error.rb', line 9 def "Got error when trying to fetch PDF from server. HTTP error #{@http_response.code} #{@http_response.message}" end |