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.



46
47
48
49
50
51
52
53
# File 'lib/httpimagestore/configuration/thumbnailer.rb', line 46

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.



55
56
57
# File 'lib/httpimagestore/configuration/thumbnailer.rb', line 55

def remote_error
  @remote_error
end