Exception: Rabbit::InvalidImageSizeError

Inherits:
Error
  • Object
show all
Defined in:
lib/rabbit/rabbit.rb

Constant Summary

Constants included from GetText

GetText::DOMAIN

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from GetText

included

Constructor Details

#initialize(filename, prop_name, value) ⇒ InvalidImageSizeError

Returns a new instance of InvalidImageSizeError.



216
217
218
219
220
221
222
223
224
225
226
227
# File 'lib/rabbit/rabbit.rb', line 216

def initialize(filename, prop_name, value)
  @filename = filename
  @prop_name = prop_name
  @value = value
  params = {
    :filename => filename,
    :prop_name => prop_name,
    :value => value,
  }
  super(_("invalid value of size property \"%{prop_name}\" " \
          "of image \"%{filename}\": %{value}") % params)
end

Instance Attribute Details

#filenameObject (readonly)

Returns the value of attribute filename.



215
216
217
# File 'lib/rabbit/rabbit.rb', line 215

def filename
  @filename
end

#prop_nameObject (readonly)

Returns the value of attribute prop_name.



215
216
217
# File 'lib/rabbit/rabbit.rb', line 215

def prop_name
  @prop_name
end

#valueObject (readonly)

Returns the value of attribute value.



215
216
217
# File 'lib/rabbit/rabbit.rb', line 215

def value
  @value
end