Exception: PDF::Toolkit::ExecutionError

Inherits:
Error
  • Object
show all
Defined in:
lib/pdf/toolkit.rb

Overview

Raised when an invocation of ‘pdftk` fails under the cover

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(msg = nil, cmd = nil, exit_status = nil) ⇒ ExecutionError

Returns a new instance of ExecutionError.



54
55
56
57
58
# File 'lib/pdf/toolkit.rb', line 54

def initialize(msg = nil, cmd = nil, exit_status = nil)
  super(msg)
  @command = cmd
  @exit_status = exit_status
end

Instance Attribute Details

#commandObject (readonly)

Returns the value of attribute command.



53
54
55
# File 'lib/pdf/toolkit.rb', line 53

def command
  @command
end

#exit_statusObject (readonly)

Returns the value of attribute exit_status.



53
54
55
# File 'lib/pdf/toolkit.rb', line 53

def exit_status
  @exit_status
end