Exception: Configuration::Thumbnail::ThumbnailingError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/httpimagestore/configuration/thumbnailer.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(input_image_name, output_image_name, remote_error) ⇒ ThumbnailingError

Returns a new instance of ThumbnailingError.



52
53
54
55
56
57
58
59
# File 'lib/httpimagestore/configuration/thumbnailer.rb', line 52

def initialize(input_image_name, output_image_name, remote_error)
	@remote_error = remote_error
	if output_image_name
		super "thumbnailing of '#{input_image_name}' into '#{output_image_name}' failed: #{remote_error.message}"
	else
		super "thumbnailing of '#{input_image_name}' failed: #{remote_error.message}"
	end
end

Instance Attribute Details

#remote_errorObject (readonly)

Returns the value of attribute remote_error.



61
62
63
# File 'lib/httpimagestore/configuration/thumbnailer.rb', line 61

def remote_error
  @remote_error
end