Exception: Rabbit::CantAllocateColorError

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(color) ⇒ CantAllocateColorError

Returns a new instance of CantAllocateColorError.



100
101
102
103
# File 'lib/rabbit/error.rb', line 100

def initialize(color)
  @color = color
  super(_("can't allocate color: %s"), color)
end

Instance Attribute Details

#colorObject (readonly)

Returns the value of attribute color.



99
100
101
# File 'lib/rabbit/error.rb', line 99

def color
  @color
end