Exception: Rabbit::InvalidImageSizeError

Inherits:
Error
  • Object
show all
Defined in:
lib/rabbit/error.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.



185
186
187
188
189
190
191
192
193
194
195
196
# File 'lib/rabbit/error.rb', line 185

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.



184
185
186
# File 'lib/rabbit/error.rb', line 184

def filename
  @filename
end

#prop_nameObject (readonly)

Returns the value of attribute prop_name.



184
185
186
# File 'lib/rabbit/error.rb', line 184

def prop_name
  @prop_name
end

#valueObject (readonly)

Returns the value of attribute value.



184
185
186
# File 'lib/rabbit/error.rb', line 184

def value
  @value
end