Exception: IMGKit::CommandFailedError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/imgkit/imgkit.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#commandObject (readonly)

Returns the value of attribute command.



19
20
21
# File 'lib/imgkit/imgkit.rb', line 19

def command
  @command
end

#stderrObject (readonly)

Returns the value of attribute stderr.



19
20
21
# File 'lib/imgkit/imgkit.rb', line 19

def stderr
  @stderr
end