Exception: Rabbit::ImageLoadWithExternalCommandError
- Inherits:
-
ImageLoadError
- Object
- StandardError
- Error
- ImageLoadError
- Rabbit::ImageLoadWithExternalCommandError
- Defined in:
- lib/rabbit/rabbit.rb
Direct Known Subclasses
AAFigureCanNotHandleError, BlockDiagCanNotHandleError, DiaCanNotHandleError, EPSCanNotHandleError, GIMPCanNotHandleError, TeXCanNotHandleError
Constant Summary
Constants included from GetText
Instance Attribute Summary collapse
-
#command ⇒ Object
readonly
Returns the value of attribute command.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(type, command, additional_info = nil) ⇒ ImageLoadWithExternalCommandError
constructor
A new instance of ImageLoadWithExternalCommandError.
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
#command ⇒ Object (readonly)
Returns the value of attribute command.
55 56 57 |
# File 'lib/rabbit/rabbit.rb', line 55 def command @command end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
55 56 57 |
# File 'lib/rabbit/rabbit.rb', line 55 def type @type end |