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.


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

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.


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

def command
  @command
end

#typeObject (readonly)

Returns the value of attribute type.


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

def type
  @type
end