Exception: Rabbit::InvalidSizeError
- Defined in:
- lib/rabbit/error.rb
Constant Summary
Constants included from GetText
Instance Attribute Summary collapse
-
#filename ⇒ Object
readonly
Returns the value of attribute filename.
-
#prop_name ⇒ Object
readonly
Returns the value of attribute prop_name.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(filename, prop_name, value) ⇒ InvalidSizeError
constructor
A new instance of InvalidSizeError.
Methods included from GetText
Constructor Details
#initialize(filename, prop_name, value) ⇒ InvalidSizeError
Returns a new instance of InvalidSizeError.
192 193 194 195 196 197 198 199 200 201 202 203 |
# File 'lib/rabbit/error.rb', line 192 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
#filename ⇒ Object (readonly)
Returns the value of attribute filename.
191 192 193 |
# File 'lib/rabbit/error.rb', line 191 def filename @filename end |
#prop_name ⇒ Object (readonly)
Returns the value of attribute prop_name.
191 192 193 |
# File 'lib/rabbit/error.rb', line 191 def prop_name @prop_name end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
191 192 193 |
# File 'lib/rabbit/error.rb', line 191 def value @value end |