Exception: Configuration::Thumbnail::ThumbnailingError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Configuration::Thumbnail::ThumbnailingError
- Defined in:
- lib/httpimagestore/configuration/thumbnailer.rb
Instance Attribute Summary collapse
-
#remote_error ⇒ Object
readonly
Returns the value of attribute remote_error.
Instance Method Summary collapse
-
#initialize(input_image_name, output_image_name, remote_error) ⇒ ThumbnailingError
constructor
A new instance of ThumbnailingError.
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.}" else super "thumbnailing of '#{input_image_name}' failed: #{remote_error.}" end end |
Instance Attribute Details
#remote_error ⇒ Object (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 |