Exception: Rabbit::ImageLoadWithExternalCommandError

Inherits:
ImageLoadError 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(type, command, additional_info = nil) ⇒ ImageLoadWithExternalCommandError

Returns a new instance of ImageLoadWithExternalCommandError.



35
36
37
38
39
40
41
42
43
44
# File 'lib/rabbit/error.rb', line 35

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.



34
35
36
# File 'lib/rabbit/error.rb', line 34

def command
  @command
end

#typeObject (readonly)

Returns the value of attribute type.



34
35
36
# File 'lib/rabbit/error.rb', line 34

def type
  @type
end