Exception: Rabbit::ImageLoadWithExternalCommandError
- Inherits:
-
ImageLoadError
- Object
- StandardError
- Error
- ImageLoadError
- Rabbit::ImageLoadWithExternalCommandError
- Defined in:
- lib/rabbit/error.rb
Direct Known Subclasses
AAFigureCanNotHandleError, BlockDiagCanNotHandleError, DiaCanNotHandleError, EPSCanNotHandleError, GIMPCanNotHandleError, MermaidCanNotHandleError, 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
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
#command ⇒ Object (readonly)
Returns the value of attribute command.
35 36 37 |
# File 'lib/rabbit/error.rb', line 35 def command @command end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
35 36 37 |
# File 'lib/rabbit/error.rb', line 35 def type @type end |