Exception: Rabbit::InvalidSizeError

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) ⇒ InvalidSizeError

Returns a new instance of InvalidSizeError.


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

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 \"%{filename}\": %{value}") % params)
end

Instance Attribute Details

#filenameObject (readonly)

Returns the value of attribute filename.


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

def filename
  @filename
end

#prop_nameObject (readonly)

Returns the value of attribute prop_name.


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

def prop_name
  @prop_name
end

#valueObject (readonly)

Returns the value of attribute value.


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

def value
  @value
end