Exception: IMGKit::CommandFailedError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- IMGKit::CommandFailedError
- Defined in:
- lib/imgkit/imgkit.rb
Instance Attribute Summary collapse
-
#command ⇒ Object
readonly
Returns the value of attribute command.
-
#stderr ⇒ Object
readonly
Returns the value of attribute stderr.
Instance Method Summary collapse
-
#initialize(command, stderr) ⇒ CommandFailedError
constructor
A new instance of CommandFailedError.
Constructor Details
#initialize(command, stderr) ⇒ CommandFailedError
Returns a new instance of CommandFailedError.
20 21 22 23 24 |
# File 'lib/imgkit/imgkit.rb', line 20 def initialize(command, stderr) @command = command @stderr = stderr super("Command failed: #{command}: #{stderr}") end |
Instance Attribute Details
#command ⇒ Object (readonly)
Returns the value of attribute command.
19 20 21 |
# File 'lib/imgkit/imgkit.rb', line 19 def command @command end |
#stderr ⇒ Object (readonly)
Returns the value of attribute stderr.
19 20 21 |
# File 'lib/imgkit/imgkit.rb', line 19 def stderr @stderr end |