Exception: Wisepdf::NoExecutableError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/wisepdf/errors.rb

Instance Method Summary collapse

Constructor Details

#initialize(path = nil) ⇒ NoExecutableError

Returns a new instance of NoExecutableError.



3
4
5
6
7
8
# File 'lib/wisepdf/errors.rb', line 3

def initialize(path=nil)
  msg = "No wkhtmltopdf found or it is not executable\n"
  msg += "Path: '#{path}'\n" unless path.nil?
  msg += "Please install wkhtmltopdf - http://code.google.com/p/wkhtmltopdf"
  super(msg)
end