Exception: Rabbit::ImageLoadWithExternalCommandError

Inherits:
ImageLoadError 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

N_, _, bindtextdomain, locale=

Constructor Details

#initialize(type, command, additional_info = nil) ⇒ ImageLoadWithExternalCommandError

Returns a new instance of ImageLoadWithExternalCommandError.



56
57
58
59
60
61
62
63
64
65
# File 'lib/rabbit/rabbit.rb', line 56

def initialize(type, command, additional_info=nil)
  @type = type
  @command = command
  format =
    _("can't handle %s because the following command " \
      "can't be run successfully: %s")
  msg = format % [@type, @command]
  msg << "\n#{additional_info}" if additional_info
  super(msg)
end

Instance Attribute Details

#commandObject (readonly)

Returns the value of attribute command.



55
56
57
# File 'lib/rabbit/rabbit.rb', line 55

def command
  @command
end

#typeObject (readonly)

Returns the value of attribute type.



55
56
57
# File 'lib/rabbit/rabbit.rb', line 55

def type
  @type
end