Exception: Gotenberg::Rails::ConversionError

Inherits:
Error
  • Object
show all
Defined in:
lib/gotenberg/rails/error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(response) ⇒ ConversionError

Returns a new instance of ConversionError.



10
11
12
13
# File 'lib/gotenberg/rails/error.rb', line 10

def initialize(response)
  @response = response
  super("Gotenberg conversion failed with #{response.code}: #{response.body}")
end

Instance Attribute Details

#responseObject (readonly)

Returns the value of attribute response.



8
9
10
# File 'lib/gotenberg/rails/error.rb', line 8

def response
  @response
end